public function setUp()
 {
     $this->serviceLocator = null;
     $this->setApplicationConfig(Bootstrap::getConfig());
     parent::setUp();
     $this->prepareAuthenticateMock();
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->setApplicationConfig(Bootstrap::getConfig());
     parent::setUp();
     $this->repository = $this->getApplicationServiceLocator()->get('repositories')->get('Jobs/Job');
     $this->dm = $this->getApplicationServiceLocator()->get('doctrine.documentmanager.odm_default');
     $this->initOrganization();
     $this->initJob();
 }
 public function setUp()
 {
     $this->serviceLocator = null;
     $this->setApplicationConfig(Bootstrap::getConfig());
     parent::setUp();
     if (!is_object($this->serviceLocator)) {
         $this->serviceLocator = $this->getApplicationServiceLocator();
         $this->serviceLocator->setAllowOverride(true);
     }
 }