Skip to content

Commit c884dc1

Browse files
committed
Remove initial namespace check
1 parent 623a8fb commit c884dc1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Rules/Drupal/Tests/BrowserTestBaseDefaultThemeRule.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ public function processNode(Node $node, Scope $scope): array
2929
if ($node->namespacedName === null) {
3030
return [];
3131
}
32-
$testNamespacePart = (string) $node->namespacedName->slice(1, 3);
33-
if ($testNamespacePart !== 'Tests\\Functional' && $testNamespacePart !== 'Tests\\FunctionalJavascript') {
34-
return [];
35-
}
3632

3733
// Only inspect tests.
3834
// @todo replace this str_ends_with() when php 8 is required.

0 commit comments

Comments
 (0)