protected function setUp() { parent::setUp(); ServiceLocatorFactory::setInstance($this->getServiceManager()); $this->controller = new UsersRecoverPasswordController(); $this->controller->setServiceLocator(ServiceLocatorFactory::getInstance()); $this->controller->setEvent($this->event); $this->controller->setServiceLocator($this->serviceManager); }
protected function setUp() { parent::setUp(); ServiceLocatorFactory::setInstance($this->getServiceManager()); $this->controller = new StatoCivileExportController(); $this->controller->setServiceLocator(ServiceLocatorFactory::getInstance()); $this->controller->setEvent($this->event); $this->controller->setServiceLocator($this->serviceManager); }
protected function setUp() { parent::setUp(); ServiceLocatorFactory::setInstance($this->getServiceManager()); $this->controller = new AlboPretorioSearchController(); $this->controller->setServiceLocator(ServiceLocatorFactory::getInstance()); $this->controller->setEvent($this->event); $this->controller->setServiceLocator($this->serviceManager); }
protected function setUp() { parent::setUp(); ServiceLocatorFactory::setInstance($this->getServiceManager()); $this->controller = $this->getMockForAbstractClass('\\Application\\Controller\\SetupAbstractController'); $this->controller->setServiceLocator(ServiceLocatorFactory::getInstance()); $this->controller->setEvent($this->event); $this->controller->setServiceLocator($this->serviceManager); }
protected function setUp() { parent::setUp(); ServiceLocatorFactory::setInstance($this->getServiceManager()); $this->controller = new CookieWarningController(); $this->controller->setServiceLocator(ServiceLocatorFactory::getInstance()); $this->controller->setEvent($this->event); $this->controller->setServiceLocator($this->serviceManager); }
/** * {@inheritDoc} */ public function onBootstrap(MvcEvent $e) { ServiceLocatorFactory::setInstance($e->getApplication()->getServiceManager()); }
public function testSetinstance() { ServiceLocatorFactory::setInstance($this->getServiceManager()); $this->assertTrue(ServiceLocatorFactory::getInstance() instanceof ServiceManager); }