/**
  * Set up application config
  */
 public function setUp()
 {
     parent::setUp();
     $this->setTraceError(true);
     $this->setApplicationConfig(\Library\Application::getApplicationConfig('Console', true));
     // Put application in authenticated state
     $auth = $this->createMock('Model\\Operator\\AuthenticationService');
     $auth->expects($this->atLeastOnce())->method('hasIdentity')->willReturn(true);
     $serviceManager = $this->getApplicationServiceLocator();
     $serviceManager->setService('Model\\Operator\\AuthenticationService', $auth);
 }
Beispiel #2
0
 public function setUp()
 {
     parent::setUp();
     $this->setTraceError(true);
     $this->setApplicationConfig(\Library\Application::getApplicationConfig('Export', true));
 }
Beispiel #3
0
 public function setUp()
 {
     parent::setUp();
     $this->setTraceError(true);
     $this->setApplicationConfig(\Library\Application::getApplicationConfig('DatabaseManager', true));
 }
Beispiel #4
0
 public function setUp()
 {
     parent::setUp();
     $this->setTraceError(true);
     $this->setApplicationConfig(\Library\Application::getApplicationConfig('DecodeInventory', true));
 }
Beispiel #5
0
 public function setUp()
 {
     parent::setUp();
     $this->setTraceError(true);
     $this->setApplicationConfig(\Library\Application::getApplicationConfig('PackageBuilder', true));
 }
 public function testGetApplicationConfigWithTestEnvironment()
 {
     $this->assertEquals(array_merge_recursive(require Application::getPath('config/application.config.php'), array('modules' => array('moduleName'), 'module_listener_options' => array('module_paths' => array(realpath(__DIR__ . '/../..'))), 'Library\\UserConfig' => array('debug' => array('display backtrace' => true, 'report missing translations' => true)))), Application::getApplicationConfig('moduleName', true));
 }