diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module index da9b9fd..da7c265 100644 --- a/core/modules/simpletest/simpletest.module +++ b/core/modules/simpletest/simpletest.module @@ -436,6 +436,7 @@ function simpletest_log_read($test_id, $prefix, $test_class, $during_test = FALS */ function simpletest_test_get_all() { $groups = &drupal_static(__FUNCTION__); + if (!$groups) { // Make sure that namespaces for disabled modules are registered so that the // checks below will find them. @@ -484,7 +485,8 @@ function simpletest_test_get_all() { if ($reflectionClass->isInstantiable()) { $reflectionMethod = new ReflectionMethod($class, 'getInfo'); $declaringClass = $reflectionMethod->getDeclaringClass()->getName(); - // Avoid to test intermediate classes which don't implement method. + // Avoid testing intermediate classes which do not implement the + // method. if ($class == $declaringClass) { $info = call_user_func(array($class, 'getInfo')); }