Exemplo n.º 1
0
 /**
  * Gets a Prophecy object for the ContainerBuilder which includes the mandatory called on the services included in
  * the default config.
  *
  * @return ObjectProphecy
  */
 private function getBaseDefaultContainerBuiderProphecy()
 {
     $containerBuilderProphecy = $this->prophesize('Symfony\\Component\\DependencyInjection\\ContainerBuilder');
     $containerBuilderProphecy->addResource(DependencyInjectionArgument::service(getcwd() . '/src/FrontBundle/Resources/config/services.yml'))->shouldBeCalled();
     $containerBuilderProphecy->setParameter('knp_menu_item.class', MenuItem::class)->shouldBeCalled();
     return $containerBuilderProphecy;
 }
Exemplo n.º 2
0
 /**
  * Gets a Prophecy object for the ContainerBuilder which includes the mandatory called on the services included in
  * the default config.
  *
  * @return ObjectProphecy
  */
 private function getBaseDefaultContainerBuiderProphecy()
 {
     $containerBuilderProphecy = $this->prophesize('Symfony\\Component\\DependencyInjection\\ContainerBuilder');
     $containerBuilderProphecy->addResource(DependencyInjectionArgument::service(getcwd() . '/src/ApiBundle/Resources/config/services.yml'))->shouldBeCalled();
     return $containerBuilderProphecy;
 }