Commit f1ec2386 authored by alexpott's avatar alexpott

Issue #2129197 by dawehner: Testbot (run-tests.sh with --file) attempts to run...

Issue #2129197 by dawehner: Testbot (run-tests.sh with --file) attempts to run non-test classes, fails.
parent 705b3012
......@@ -668,7 +668,10 @@ function simpletest_script_get_test_list() {
}
else {
foreach ($matches[1] as $class_name) {
$test_list[] = $namespace . '\\' . $class_name;
$namespace_class = $namespace . '\\' . $class_name;
if (is_subclass_of($namespace_class, '\Drupal\simpletest\TestBase') || is_subclass_of($namespace_class, '\Drupal\Tests\UnitTestCase')) {
$test_list[] = $namespace_class;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment