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

testNotPrependPropertyInfoWhenConfigExist() public method

    public function testNotPrependPropertyInfoWhenConfigExist()
    {
        $containerBuilderProphecy = $this->prophesize(ContainerBuilder::class);
        $containerBuilderProphecy->getExtensionConfig('framework')->willReturn(['property_info' => ['enabled' => false]])->shouldBeCalled();
        $containerBuilderProphecy->prependExtensionConfig('framework', Argument::any())->willReturn(null)->shouldBeCalled();
        $containerBuilderProphecy->prependExtensionConfig('framework', Argument::that(function (array $config) {
            return array_key_exists('property_info', $config);
        }))->shouldNotBeCalled();
        $containerBuilder = $containerBuilderProphecy->reveal();
        $this->extension->prepend($containerBuilder);
    }