diff --git a/core/modules/media/tests/src/Kernel/EditorMediaDialogTest.php b/core/modules/media/tests/src/Kernel/EditorMediaDialogTest.php
index 583aafd477e5c35a89b911d15fc0b03d26b7c217..136307d15dcf9a748ca43fe28ebad4c400db7a91 100644
--- a/core/modules/media/tests/src/Kernel/EditorMediaDialogTest.php
+++ b/core/modules/media/tests/src/Kernel/EditorMediaDialogTest.php
@@ -13,6 +13,7 @@
 /**
  * @coversDefaultClass \Drupal\media\Form\EditorMediaDialog
  * @group media
+ * @group legacy
  */
 class EditorMediaDialogTest extends KernelTestBase {
 
diff --git a/core/phpstan-baseline.neon b/core/phpstan-baseline.neon
index 42efef5132f5f6159fe8da5534f5987a9778ca03..5465219c4ae3396ff766898197251de380921849 100644
--- a/core/phpstan-baseline.neon
+++ b/core/phpstan-baseline.neon
@@ -1819,15 +1819,6 @@ parameters:
 			count: 1
 			path: modules/media/src/OEmbed/UrlResolver.php
 
-		-
-			message: """
-				#^Call to method create\\(\\) of deprecated class Drupal\\\\media\\\\Form\\\\EditorMediaDialog\\:
-				in drupal\\:10\\.1\\.0 and is removed from drupal\\:11\\.0\\.0\\. There is no
-				replacement\\.$#
-			"""
-			count: 1
-			path: modules/media/tests/src/Kernel/EditorMediaDialogTest.php
-
 		-
 			message: """
 				#^Call to deprecated method loadRevision\\(\\) of class Drupal\\\\Core\\\\Entity\\\\EntityStorageInterface\\: