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()); }