diff --git a/core/modules/simpletest/src/TestDiscovery.php b/core/modules/simpletest/src/TestDiscovery.php index 4c762a7..1d4d579 100644 --- a/core/modules/simpletest/src/TestDiscovery.php +++ b/core/modules/simpletest/src/TestDiscovery.php @@ -160,9 +160,9 @@ public function getTestClasses($extension = NULL) { try { $info = static::getTestInfo($classname, $parser->getDocComment()); } - catch (\LogicException $e) { - // If the class is missing a summary line or an @group annotation just - // skip it. Most likely it is an abstract class, trait or test fixture. + catch (MissingGroupException $e) { + // If the class is @group annotation just skip it. Most likely it is an + // abstract class, trait or test fixture. continue; } // Skip this test class if it requires unavailable modules.