From 2e881110a34b3aa81f4e40412d28ec2ec2ca6436 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Wed, 29 Jun 2022 12:37:43 +0200 Subject: [PATCH] Fix test --- Tests/DependencyInjection/JMSSerializerExtensionTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/DependencyInjection/JMSSerializerExtensionTest.php b/Tests/DependencyInjection/JMSSerializerExtensionTest.php index 6b89ece5..8e5a07d8 100644 --- a/Tests/DependencyInjection/JMSSerializerExtensionTest.php +++ b/Tests/DependencyInjection/JMSSerializerExtensionTest.php @@ -300,11 +300,11 @@ public function testLoadExistentMetadataDir() ], ], ], static function (ContainerBuilder $container) { - $container->getAlias('jms_serializer.metadata.file_locator')->setPublic(true); + $container->findDefinition('jms_serializer.metadata.file_locator')->setPublic(true); }); $fileLocatorDef = $container->findDefinition('jms_serializer.metadata.file_locator'); - $directories = $fileLocatorDef->getArgument(0); + $directories = $fileLocatorDef->getArgument(0)->getArgument(0); $this->assertEquals(['foo_ns' => __DIR__], $directories); } @@ -674,7 +674,7 @@ public function testIncludeInterfaces() self::assertSame($expected, $actual); } - private function getContainerForConfigLoad(array $configs, ?callable $configurator = null) + private function getContainerForConfigLoad(array $configs) { $bundle = new JMSSerializerBundle(); $extension = $bundle->getContainerExtension();