Commit 81d8d75a authored by webchick's avatar webchick

Issue #2114823 follow-up by olli: Fixed SimpleTest no longer finding unit tests.

parent da85a661
......@@ -789,8 +789,8 @@ function simpletest_phpunit_get_available_tests($module = NULL) {
}
$name = $test->getName();
if ($test instanceof \Drupal\Tests\UnitTestCase && !array_key_exists($name, $test_classes) && (!$module || substr($name, 0, $n) == $prefix)) {
$test_classes[$name] = $test::getInfo();
if (!array_key_exists($name, $test_classes) && (!$module || substr($name, 0, $n) == $prefix)) {
$test_classes[$name] = $name::getInfo();
}
}
......
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