Skip to content

Commit 6f38a0d

Browse files
Toflarsoyuka
authored andcommitted
Fixed tests
1 parent 36ba2d1 commit 6f38a0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Bridge/Symfony/Bundle/DependencyInjection/ApiPlatformExtensionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
use Symfony\Component\Config\FileLocator;
7979
use Symfony\Component\Config\Resource\DirectoryResource;
8080
use Symfony\Component\Config\Resource\ResourceInterface;
81+
use Symfony\Component\DependencyInjection\Alias;
8182
use Symfony\Component\DependencyInjection\ChildDefinition;
8283
use Symfony\Component\DependencyInjection\ContainerBuilder;
8384
use Symfony\Component\DependencyInjection\Definition;
@@ -355,6 +356,7 @@ public function testEnableSecurity()
355356
$containerBuilderProphecy->setAlias(ResourceAccessCheckerInterface::class, 'api_platform.security.resource_access_checker')->shouldBeCalled();
356357
$containerBuilderProphecy->setDefinition('api_platform.security.listener.request.deny_access', Argument::type(Definition::class))->shouldBeCalled();
357358
$containerBuilderProphecy->setDefinition('api_platform.security.expression_language_provider', Argument::type(Definition::class))->shouldBeCalled();
359+
$containerBuilderProphecy->setAlias('api_platform.security.expression_language', Argument::type(Alias::class))->shouldBeCalled();
358360
$containerBuilder = $containerBuilderProphecy->reveal();
359361

360362
$this->extension->load(self::DEFAULT_CONFIG, $containerBuilder);

0 commit comments

Comments
 (0)