Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen committed Jun 29, 2022
1 parent 45103cd commit 2e88111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/DependencyInjection/JMSSerializerExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2e88111

Please sign in to comment.