diff --git a/core/modules/system/tests/src/FunctionalJavascript/ModuleFilterTest.php b/core/modules/system/tests/src/FunctionalJavascript/ModuleFilterTest.php index 9f96c1a526..eaf15286c1 100644 --- a/core/modules/system/tests/src/FunctionalJavascript/ModuleFilterTest.php +++ b/core/modules/system/tests/src/FunctionalJavascript/ModuleFilterTest.php @@ -54,7 +54,7 @@ public function testModuleFilter() { $session->wait(1000, 'jQuery("#module-node:visible").length == 0'); $visible_rows = $this->filterVisibleElements($module_rows); self::assertGreaterThan(count($visible_rows), count($module_rows)); - $this->assertGreaterThan(1, count($visible_rows)); + $this->assertGreaterThan(1, count($visible_rows)); // Test Drupal.announce() message only one match is expected. // Using a very specific module name, we expect only one row. @@ -82,6 +82,7 @@ public function testModuleFilter() { * An array of node elements. * * @return \Behat\Mink\Element\NodeElement[] + * An array of node elements. */ protected function filterVisibleElements(array $elements): array { $elements = array_filter($elements, function ($element) {