ApiPlatform\Core\Tests\Bridge\Symfony\Bundle\ApiPlatformBundleTest::testBuild PHP Метод

testBuild() публичный Метод

public testBuild ( )
    public function testBuild()
    {
        $containerProphecy = $this->prophesize(ContainerBuilder::class);
        $containerProphecy->addCompilerPass(Argument::type(DataProviderPass::class))->shouldBeCalled();
        $containerProphecy->addCompilerPass(Argument::type(FilterPass::class))->shouldBeCalled();
        $containerProphecy->addCompilerPass(Argument::type(DoctrineQueryExtensionPass::class))->shouldBeCalled();
        $bundle = new ApiPlatformBundle();
        $bundle->build($containerProphecy->reveal());
    }
ApiPlatformBundleTest