Loading core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php +3 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,9 @@ public function testCoreServiceAliases(): void { } } $this->assertSame($expected, array_intersect($expected, $aliases)); $missing = array_diff($expected, $aliases); $formatted = Yaml::encode(array_map(fn ($alias) => sprintf('@%s', $alias), $missing)); $this->assertSame($expected, array_intersect($expected, $aliases), sprintf('The following core services do not have map the class name to an alias. Add the following to core.services.yml in the appropriate place: %s%s%s', \PHP_EOL, \PHP_EOL, $formatted)); } } Loading
core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php +3 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,9 @@ public function testCoreServiceAliases(): void { } } $this->assertSame($expected, array_intersect($expected, $aliases)); $missing = array_diff($expected, $aliases); $formatted = Yaml::encode(array_map(fn ($alias) => sprintf('@%s', $alias), $missing)); $this->assertSame($expected, array_intersect($expected, $aliases), sprintf('The following core services do not have map the class name to an alias. Add the following to core.services.yml in the appropriate place: %s%s%s', \PHP_EOL, \PHP_EOL, $formatted)); } }