diff --git a/core/modules/simpletest/src/Tests/BrokenSetUpTest.php b/core/modules/simpletest/src/Tests/BrokenSetUpTest.php index 28fd31beb3..fab44d00c8 100644 --- a/core/modules/simpletest/src/Tests/BrokenSetUpTest.php +++ b/core/modules/simpletest/src/Tests/BrokenSetUpTest.php @@ -13,6 +13,8 @@ * properly are skipped. * * @group WebTestBase + * @group legacy + * * @see \Drupal\simpletest\WebTestBase */ class BrokenSetUpTest extends WebTestBase { diff --git a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php index ae9d6f7291..4bf7c7b6cc 100644 --- a/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php +++ b/core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php @@ -9,6 +9,7 @@ * * @group simpletest * @group WebTestBase + * @group legacy */ class MissingCheckedRequirementsTest extends WebTestBase { diff --git a/core/modules/simpletest/src/Tests/SimpleTestTest.php b/core/modules/simpletest/src/Tests/SimpleTestTest.php index c26fbdcbfe..ea10bcef71 100644 --- a/core/modules/simpletest/src/Tests/SimpleTestTest.php +++ b/core/modules/simpletest/src/Tests/SimpleTestTest.php @@ -14,6 +14,7 @@ * * @group simpletest * @group WebTestBase + * @group legacy */ class SimpleTestTest extends WebTestBase { diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index f7a7ebd647..3f0ab2ff13 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -706,7 +706,7 @@ protected function curlHeaderCallback($curlHandler, $header) { if (getenv('SYMFONY_DEPRECATIONS_HELPER') !== 'disabled') { $message = (string) $parameters[0]; $test_info = TestDiscovery::getTestInfo(get_called_class()); - if ($test_info['group'] !== 'legacy' && !in_array($message, DeprecationListenerTrait::getSkippedDeprecations())) { + if (!in_array('legacy', $test_info['groups']) && !in_array($message, DeprecationListenerTrait::getSkippedDeprecations())) { call_user_func_array([&$this, 'error'], $parameters); } }