/** * {@inheritDoc} */ public function setUp() { $this->serviceManager = Bootstrap::getServiceManager(); $this->entityManager = $this->serviceManager->get('doctrine.entitymanager.orm_default'); $this->contactService = new ContactService(); $this->contactService->setServiceLocator($this->serviceManager); }
/** * {@inheritDoc} */ public function setUp() { $this->serviceManager = Bootstrap::getServiceManager(); $this->entityManager = $this->serviceManager->get('Doctrine\\ORM\\EntityManager'); $this->programService = new ProgramService(); $this->programService->setServiceLocator($this->serviceManager); $this->contactService = new ContactService(); $this->contactService->setServiceLocator($this->serviceManager); }
/** * {@inheritDoc} */ public function setUp() { $this->serviceManager = Bootstrap::getServiceManager(); $this->contactService = new ContactService(); $this->contactService->setServiceLocator($this->serviceManager); }