diff --git a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php index 64696d909f..e081649b8f 100644 --- a/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php +++ b/core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php @@ -556,7 +556,6 @@ public function testGetServiceDefinitionForExpression() { * Tests that the correct RuntimeException is thrown for dumping an object. * * @covers ::dumpValue - * @group legacy */ public function testGetServiceDefinitionForObject() { $service = new \stdClass(); @@ -568,7 +567,6 @@ public function testGetServiceDefinitionForObject() { $this->containerBuilder->getDefinitions()->willReturn($services); $this->expectException(RuntimeException::class); - $this->expectDeprecation('_serviceId is deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. Use DrupalKernelInterface::getServiceIdMapping() instead. See https://www.drupal.org/node/3292540'); $this->dumper->getArray(); }