Skip to content

Commit 98272fc

Browse files
committed
Test remove filterEagerLoadingExtension when eager loading is disabled
1 parent 3055d6a commit 98272fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public function testDisableEagerLoadingExtension()
170170
$containerBuilderProphecy = $this->getContainerBuilderProphecy();
171171
$containerBuilderProphecy->setParameter('api_platform.eager_loading.enabled', false)->shouldBeCalled();
172172
$containerBuilderProphecy->removeDefinition('api_platform.doctrine.orm.query_extension.eager_loading')->shouldBeCalled();
173+
$containerBuilderProphecy->removeDefinition('api_platform.doctrine.orm.query_extension.filter_eager_loading')->shouldBeCalled();
173174
$containerBuilder = $containerBuilderProphecy->reveal();
174175
$this->extension->load(array_merge_recursive(self::DEFAULT_CONFIG, ['api_platform' => ['eager_loading' => ['enabled' => false]]]), $containerBuilder);
175176
}

0 commit comments

Comments
 (0)