Skip to content
Snippets Groups Projects
Commit f1ec2386 authored by Alex Pott's avatar Alex Pott
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -668,7 +668,10 @@ function simpletest_script_get_test_list() { ...@@ -668,7 +668,10 @@ function simpletest_script_get_test_list() {
} }
else { else {
foreach ($matches[1] as $class_name) { 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;
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment