Chris@0: addTestFiles($tests); Chris@0: } Chris@0: else { Chris@0: $this->addTestFiles(TestDiscovery::scanDirectory("Drupal\\${suite_namespace}Tests\\", "$root/core/tests/Drupal/${suite_namespace}Tests")); Chris@0: } Chris@0: Chris@0: // Extensions' tests will always be in the namespace Chris@0: // Drupal\Tests\$extension_name\$suite_namespace\ and be in the Chris@0: // $extension_path/tests/src/$suite_namespace directory. Not all extensions Chris@0: // will have all kinds of tests. Chris@0: foreach ($this->findExtensionDirectories($root) as $extension_name => $dir) { Chris@0: $test_path = "$dir/tests/src/$suite_namespace"; Chris@0: if (is_dir($test_path)) { Chris@0: $this->addTestFiles(TestDiscovery::scanDirectory("Drupal\\Tests\\$extension_name\\$suite_namespace\\", $test_path)); Chris@0: } Chris@0: } Chris@0: } Chris@0: Chris@0: }