Author: Kévin Dunglas (dunglas@gmail.com)
Inheritance: extends Symfony\Component\HttpKernel\Bundle\Bundle
Ejemplo n.º 1
0
 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());
 }