From 81d8d75a5f3f4cce14b66445b0501c0ef45e74f2 Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Sun, 15 Jun 2014 11:50:08 -0700 Subject: [PATCH] Issue #2114823 follow-up by olli: Fixed SimpleTest no longer finding unit tests. --- core/modules/simpletest/simpletest.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index 4cfc261f5314..96ab21bb81b4 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -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(); } } -- GitLab