ApiPlatform\Core\Tests\Bridge\Symfony\Bundle\DependencyInjection\ApiPlatformExtensionTest::testDisableEagerLoadingExtension PHP Method

testDisableEagerLoadingExtension() public method

    public function testDisableEagerLoadingExtension()
    {
        $containerBuilderProphecy = $this->getContainerBuilderProphecy();
        $containerBuilderProphecy->setParameter('api_platform.eager_loading.enabled', false)->shouldBeCalled();
        $containerBuilderProphecy->removeDefinition('api_platform.doctrine.orm.query_extension.eager_loading')->shouldBeCalled();
        $containerBuilder = $containerBuilderProphecy->reveal();
        $this->extension->load(array_merge_recursive(self::DEFAULT_CONFIG, ['api_platform' => ['eager_loading' => ['enabled' => false]]]), $containerBuilder);
    }