diff --git a/core/modules/action/tests/src/Functional/Update/ActionConfigTest.php b/core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
index 7784fc23e0..a61f544ee5 100644
--- a/core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
+++ b/core/modules/action/tests/src/Functional/Update/ActionConfigTest.php
@@ -8,7 +8,6 @@
  * Tests removing action module's configuration.
  *
  * @group Update
- * @group legacy
  */
 class ActionConfigTest extends UpdatePathTestBase {
 
diff --git a/core/modules/content_moderation/tests/src/Kernel/ViewsDataIntegrationTest.php b/core/modules/content_moderation/tests/src/Kernel/ViewsDataIntegrationTest.php
index 96e5aaee40..851f8e2c25 100644
--- a/core/modules/content_moderation/tests/src/Kernel/ViewsDataIntegrationTest.php
+++ b/core/modules/content_moderation/tests/src/Kernel/ViewsDataIntegrationTest.php
@@ -12,7 +12,6 @@
  * Tests the views integration of content_moderation.
  *
  * @group content_moderation
- * @group legacy
  */
 class ViewsDataIntegrationTest extends ViewsKernelTestBase {
 
diff --git a/core/modules/hal/tests/src/Functional/Update/HalSettingsDeletionUpdateTest.php b/core/modules/hal/tests/src/Functional/Update/HalSettingsDeletionUpdateTest.php
index 61cef95d00..17213eb141 100644
--- a/core/modules/hal/tests/src/Functional/Update/HalSettingsDeletionUpdateTest.php
+++ b/core/modules/hal/tests/src/Functional/Update/HalSettingsDeletionUpdateTest.php
@@ -8,7 +8,6 @@
  * Ensures that update hook is run properly for deleting obsolete Hal settings.
  *
  * @group hal
- * @group legacy
  */
 class HalSettingsDeletionUpdateTest extends UpdatePathTestBase {
 
diff --git a/core/modules/serialization/tests/src/Functional/Update/SerializationSettingsDeletionUpdateTest.php b/core/modules/serialization/tests/src/Functional/Update/SerializationSettingsDeletionUpdateTest.php
index eabe724982..a50d025f24 100644
--- a/core/modules/serialization/tests/src/Functional/Update/SerializationSettingsDeletionUpdateTest.php
+++ b/core/modules/serialization/tests/src/Functional/Update/SerializationSettingsDeletionUpdateTest.php
@@ -8,7 +8,6 @@
  * Ensures that update hook is run properly for deleting obsolete serialization settings.
  *
  * @group serialization
- * @group legacy
  */
 class SerializationSettingsDeletionUpdateTest extends UpdatePathTestBase {
 
diff --git a/core/modules/system/tests/src/Functional/CsrfRequestHeaderTest.php b/core/modules/system/tests/src/Functional/CsrfRequestHeaderTest.php
index 68c4861d5c..3944e613b5 100644
--- a/core/modules/system/tests/src/Functional/CsrfRequestHeaderTest.php
+++ b/core/modules/system/tests/src/Functional/CsrfRequestHeaderTest.php
@@ -30,7 +30,6 @@ class CsrfRequestHeaderTest extends BrowserTestBase {
    * This checks one route that uses _csrf_request_header_token and one that
    * uses the deprecated _access_rest_csrf.
    *
-   * @group legacy
    * @expectedDeprecation Route requirement _access_rest_csrf is deprecated in drupal:8.2.0 and is removed in drupal:10.0.0. Use _csrf_request_header_token instead. See https://www.drupal.org/node/2772399
    */
   public function testRouteAccess() {
diff --git a/core/modules/system/tests/src/Functional/Theme/LegacyStyleSheetsRemoveTest.php b/core/modules/system/tests/src/Functional/Theme/LegacyStyleSheetsRemoveTest.php
index 707fc6edcf..d972074097 100644
--- a/core/modules/system/tests/src/Functional/Theme/LegacyStyleSheetsRemoveTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/LegacyStyleSheetsRemoveTest.php
@@ -8,7 +8,6 @@
  * Tests the legacy stylesheets-remove key.
  *
  * @group system
- * @group legacy
  */
 class LegacyStyleSheetsRemoveTest extends BrowserTestBase {
 
diff --git a/core/modules/system/tests/src/Functional/Theme/ThemeLegacyTest.php b/core/modules/system/tests/src/Functional/Theme/ThemeLegacyTest.php
index 7de359c95b..0107e4b1b6 100644
--- a/core/modules/system/tests/src/Functional/Theme/ThemeLegacyTest.php
+++ b/core/modules/system/tests/src/Functional/Theme/ThemeLegacyTest.php
@@ -8,7 +8,6 @@
  * Tests legacy theme functions.
  *
  * @group Theme
- * @group legacy
  *
  * @todo Remove in https://www.drupal.org/project/drupal/issues/3097889
  */
diff --git a/core/modules/system/tests/src/Functional/Update/IdentifierFieldSchemaTypeUpdateTest.php b/core/modules/system/tests/src/Functional/Update/IdentifierFieldSchemaTypeUpdateTest.php
index 9acc92437d..3f06eddfe3 100644
--- a/core/modules/system/tests/src/Functional/Update/IdentifierFieldSchemaTypeUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/IdentifierFieldSchemaTypeUpdateTest.php
@@ -10,7 +10,6 @@
  * @see https://www.drupal.org/node/2928906
  *
  * @group Update
- * @group legacy
  */
 class IdentifierFieldSchemaTypeUpdateTest extends UpdatePathTestBase {
 
diff --git a/core/modules/system/tests/src/Functional/Update/RemoveRevisionMetadataBcLayerUpdateTest.php b/core/modules/system/tests/src/Functional/Update/RemoveRevisionMetadataBcLayerUpdateTest.php
index affbcfdab9..8018410821 100644
--- a/core/modules/system/tests/src/Functional/Update/RemoveRevisionMetadataBcLayerUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/RemoveRevisionMetadataBcLayerUpdateTest.php
@@ -10,7 +10,6 @@
  * @see https://www.drupal.org/node/3099789
  *
  * @group Update
- * @group legacy
  */
 class RemoveRevisionMetadataBcLayerUpdateTest extends UpdatePathTestBase {
 
diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php
index 3ba1b54bbb..7cce848020 100644
--- a/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/UpdateSystem/NoPreExistingSchemaUpdateTest.php
@@ -11,7 +11,6 @@
  * Tries to update a module which has no pre-existing schema.
  *
  * @group Update
- * @group legacy
  */
 class NoPreExistingSchemaUpdateTest extends BrowserTestBase {
   use RequirementsPageTrait;
diff --git a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
index 14d7bf3a18..bbe43b9308 100644
--- a/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
+++ b/core/modules/user/tests/src/Unit/Views/Argument/RolesRidTest.php
@@ -19,8 +19,6 @@ class RolesRidTest extends UnitTestCase {
    *
    * @covers ::titleQuery
    *
-   * @group legacy
-   *
    * Note this is only a legacy test because it triggers a call to
    * \Drupal\Core\Entity\EntityTypeInterface::getLabelCallback() which is mocked
    * and triggers a deprecation error. Remove when ::getLabelCallback() is
diff --git a/core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php b/core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php
index 30fb1e8a9d..0a63d19692 100644
--- a/core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewsConfigUpdaterTest.php
@@ -9,7 +9,6 @@
  * @coversDefaultClass \Drupal\views\ViewsConfigUpdater
  *
  * @group Views
- * @group legacy
  */
 class ViewsConfigUpdaterTest extends ViewsKernelTestBase {
 
diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php
index f7efb0a6c5..420078b6fa 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php
@@ -6,7 +6,6 @@
  * Tests Javascript deprecation notices.
  *
  * @group javascript
- * @group legacy
  */
 class JavascriptDeprecationTest extends WebDriverTestBase {
 
diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
index 5bf2f49eba..52b9697441 100644
--- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
@@ -251,8 +251,6 @@ public function testTextAsserts() {
 
   /**
    * Tests legacy getRawContent().
-   *
-   * @group legacy
    * @expectedDeprecation AssertLegacyTrait::getRawContent() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead. See http://drupal.org/node/2735045
    */
   public function testGetRawContent() {
@@ -759,8 +757,6 @@ public function testEscapingAssertions() {
   /**
    * Tests that deprecation headers do not get duplicated.
    *
-   * @group legacy
-   *
    * @see \Drupal\Core\Test\HttpClientMiddleware\TestHttpClientMiddleware::__invoke()
    */
   public function testDeprecationHeaders() {
diff --git a/core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php b/core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php
index 8bcacec7a7..4e8f394b3c 100644
--- a/core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php
+++ b/core/tests/Drupal/FunctionalTests/Core/Test/AssertLegacyTraitDeprecatedTest.php
@@ -8,7 +8,6 @@
  * Tests deprecated AssertLegacyTrait functionality.
  *
  * @group browsertestbase
- * @group legacy
  */
 class AssertLegacyTraitDeprecatedTest extends BrowserTestBase {
 
diff --git a/core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php b/core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
index 0a814e3cb1..eecd2e1ce6 100644
--- a/core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
+++ b/core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
@@ -9,7 +9,6 @@
  * Tests Drupal's integration with Symfony PHPUnit Bridge.
  *
  * @group Test
- * @group legacy
  */
 class PhpUnitBridgeTest extends BrowserTestBase {
 
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
index 285906f752..34d2e86829 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php
@@ -10,7 +10,6 @@
  * Tests the update path base class.
  *
  * @group Update
- * @group legacy
  */
 class UpdatePathTestBaseTest extends UpdatePathTestBase {
 
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigStorageStagingTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigStorageStagingTest.php
index 46dc6b0537..080c6c699d 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigStorageStagingTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigStorageStagingTest.php
@@ -9,7 +9,6 @@
  * Tests that the service "config.storage.staging" has been deprecated.
  *
  * @group Test
- * @group legacy
  */
 class ConfigStorageStagingTest extends KernelTestBase {
 
diff --git a/core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php b/core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
index 18245634ac..114543e5fd 100644
--- a/core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
@@ -8,7 +8,6 @@
  * Test whether deprecated hook invocations trigger errors.
  *
  * @group Extension
- * @group legacy
  *
  * @coversDefaultClass Drupal\Core\Extension\ModuleHandler
  */
diff --git a/core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php b/core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php
index 5de5688769..4255428532 100644
--- a/core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/FileSystemRequirementsTest.php
@@ -6,7 +6,6 @@
 
 /**
  * @group File
- * @group legacy
  */
 class FileSystemRequirementsTest extends KernelTestBase {
 
diff --git a/core/tests/Drupal/KernelTests/Core/LegacyServiceTest.php b/core/tests/Drupal/KernelTests/Core/LegacyServiceTest.php
index 8bc6271553..3135e18192 100644
--- a/core/tests/Drupal/KernelTests/Core/LegacyServiceTest.php
+++ b/core/tests/Drupal/KernelTests/Core/LegacyServiceTest.php
@@ -8,7 +8,6 @@
  * Tests deprecated core services.
  *
  * @group Core
- * @group legacy
  */
 class LegacyServiceTest extends KernelTestBase {
 
diff --git a/core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php b/core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
index 2942eaace9..12e78e439a 100644
--- a/core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
@@ -9,7 +9,6 @@
  * Test how kernel tests interact with deprecation errors.
  *
  * @group Test
- * @group legacy
  */
 class PhpUnitBridgeTest extends KernelTestBase {
 
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/RegistryLegacyTest.php b/core/tests/Drupal/KernelTests/Core/Theme/RegistryLegacyTest.php
index 350f2accb4..24197e1210 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/RegistryLegacyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/RegistryLegacyTest.php
@@ -9,7 +9,6 @@
  * Tests legacy behavior of the ThemeRegistry class.
  *
  * @group Theme
- * @group legacy
  *
  * @todo Remove in https://www.drupal.org/project/drupal/issues/3097889
  */
diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
index 12c847d390..92ee5490ac 100644
--- a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
+++ b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
@@ -212,8 +212,6 @@ public function getParametersDataProvider() {
      * @covers ::getParameterCall
      *
      * @dataProvider getDefinitionsDataProvider
-     *
-     * @group legacy
      */
     public function testGetServiceDefinitions($services, $definition_services) {
       $this->containerDefinition['services'] = $definition_services;
@@ -479,8 +477,6 @@ protected function getServiceCall($id, $invalid_behavior = ContainerInterface::E
      * @covers ::getReferenceCall
      *
      * @dataProvider publicPrivateDataProvider
-     *
-     * @group legacy
      */
     public function testGetServiceDefinitionWithReferenceToAlias($public) {
       $bar_definition = new Definition('\stdClass');
@@ -536,8 +532,6 @@ public function publicPrivateDataProvider() {
      * getDecoratedService().
      *
      * @covers ::getServiceDefinition
-     *
-     * @group legacy
      */
     public function testGetServiceDefinitionForDecoratedService() {
       $bar_definition = new Definition('\stdClass');
diff --git a/core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php b/core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php
index 2785c67d5e..1718540ca3 100644
--- a/core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php
+++ b/core/tests/Drupal/Tests/Core/Assert/AssertLegacyTraitTest.php
@@ -14,7 +14,6 @@
 /**
  * @coversDefaultClass \Drupal\FunctionalTests\AssertLegacyTrait
  * @group Assert
- * @group legacy
  */
 class AssertLegacyTraitTest extends UnitTestCase {
 
diff --git a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
index 685be5a288..c5bf9ff0af 100644
--- a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
@@ -114,7 +114,6 @@ protected function setUp(): void {
   /**
    * @covers ::getCssAssets
    * @dataProvider providerAttachedAssets
-   * @group legacy
    *
    * Note the legacy group is used here because
    * ActiveTheme::getStyleSheetsRemove() is called and is deprecated. As this
diff --git a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
index 528e248b95..3e7da36fab 100644
--- a/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
+++ b/core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
@@ -540,7 +540,6 @@ public function testEscapeDatabase($expected, $name, array $identifier_quote = [
   /**
    * @covers ::__construct
    * @expectedDeprecation In drupal:10.0.0 not setting the $identifierQuotes property in the concrete Connection class will result in an RuntimeException. See https://www.drupal.org/node/2986894
-   * @group legacy
    */
   public function testIdentifierQuotesDeprecation() {
     $mock_pdo = $this->createMock(StubPDO::class);
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
index cdfabf0677..884e3b2c51 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@@ -493,7 +493,6 @@ public function testEntityClassImplements() {
 
   /**
    * @covers ::isSubclassOf
-   * @group legacy
    * @expectedDeprecation Drupal\Core\Entity\EntityType::isSubclassOf() is deprecated in drupal:8.3.0 and is removed from drupal:10.0.0. Use Drupal\Core\Entity\EntityTypeInterface::entityClassImplements() instead. See https://www.drupal.org/node/2842808
    */
   public function testIsSubClassOf() {
diff --git a/core/tests/Drupal/Tests/Core/Routing/RouterLegacyTest.php b/core/tests/Drupal/Tests/Core/Routing/RouterLegacyTest.php
index de2d903224..e7c82ad1c3 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RouterLegacyTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RouterLegacyTest.php
@@ -12,7 +12,6 @@
 /**
  * @coversDefaultClass \Drupal\Core\Routing\Router
  * @group Routing
- * @group legacy
  */
 class RouterLegacyTest extends UnitTestCase {
 
diff --git a/core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php b/core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
index cccc87182a..506b957d40 100644
--- a/core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
+++ b/core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
@@ -76,7 +76,6 @@ public function testException($callback) {
 
   /**
    * @dataProvider errorTypeProvider
-   * @group legacy
    * @expectedDeprecation Drupal\Tests\Core\Security\UntrustedObject::callback is not trusted
    */
   public function testSilencedDeprecation($callback) {
diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php
index 8f4c519848..e26bf77566 100644
--- a/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php
+++ b/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php
@@ -88,7 +88,6 @@ public function reverseProxyEnabledProvider() {
    * Tests that subscriber sets trusted headers when reverse proxy is set.
    *
    * @dataProvider reverseProxyEnabledProviderLegacy
-   * @group legacy
    */
   public function testReverseProxyEnabledLegacy($provided_settings, $expected_trusted_header_set, array $expected_deprecations) {
     if (!method_exists(Request::class, 'setTrustedHeaderName')) {
diff --git a/core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php b/core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php
index 7d9a575e1e..45a8c00b15 100644
--- a/core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php
+++ b/core/tests/Drupal/Tests/Core/StringTranslation/TranslationWrapperTest.php
@@ -16,7 +16,6 @@ class TranslationWrapperTest extends UnitTestCase {
 
   /**
    * @covers ::__construct
-   * @group legacy
    * @expectedDeprecation Drupal\Core\StringTranslation\TranslationWrapper is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use the \Drupal\Core\StringTranslation\TranslatableMarkup class instead. See https://www.drupal.org/node/2571255
    */
   public function testTranslationWrapper() {
diff --git a/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php b/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
index 28e331af37..42ef3d2e6b 100644
--- a/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
+++ b/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
@@ -12,7 +12,6 @@
  * @preserveGlobalState disabled
  *
  * @group Test
- * @group legacy
  */
 class PhpUnitBridgeIsolatedTest extends UnitTestCase {
 
diff --git a/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php b/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
index 73ba0de167..14e07722d1 100644
--- a/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
+++ b/core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
@@ -9,7 +9,6 @@
  * Test how unit tests interact with deprecation errors.
  *
  * @group Test
- * @group legacy
  */
 class PhpUnitBridgeTest extends UnitTestCase {
 
diff --git a/core/tests/Drupal/Tests/Core/Theme/RegistryLegacyTest.php b/core/tests/Drupal/Tests/Core/Theme/RegistryLegacyTest.php
index 20fdd80c08..243f71ed60 100644
--- a/core/tests/Drupal/Tests/Core/Theme/RegistryLegacyTest.php
+++ b/core/tests/Drupal/Tests/Core/Theme/RegistryLegacyTest.php
@@ -9,7 +9,6 @@
 /**
  * @coversDefaultClass \Drupal\Core\Theme\Registry
  * @group Theme
- * @group legacy
  *
  * @todo Remove in https://www.drupal.org/project/drupal/issues/3097889
  */
diff --git a/core/tests/Drupal/Tests/ExpectDeprecationTest.php b/core/tests/Drupal/Tests/ExpectDeprecationTest.php
index 0a44fd55ce..279d073f80 100644
--- a/core/tests/Drupal/Tests/ExpectDeprecationTest.php
+++ b/core/tests/Drupal/Tests/ExpectDeprecationTest.php
@@ -8,7 +8,6 @@
  * @coversDefaultClass \Drupal\Tests\Traits\ExpectDeprecationTrait
  *
  * @group Test
- * @group legacy
  */
 class ExpectDeprecationTest extends UnitTestCase {
   use ExpectDeprecationTrait;
diff --git a/core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php b/core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php
index 9b633d4833..cf99c8b249 100644
--- a/core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php
+++ b/core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php
@@ -180,8 +180,6 @@ public static function errorHandler($type, $msg, $file, $line, $context = []) {
    * deprecation notice as a warning instead of an error, which would fail the
    * test.
    *
-   * @group legacy
-   *
    * @param \PHPUnit\Framework\Test $test
    *   The test object that has ended its test run.
    * @param float $time
