/** * Setup */ protected function setUp() { // get service manager $this->serviceLocator = ApplicationBootstrap::getServiceLocator(); // get base model instance $this->model = $this->serviceLocator->get('Application\\Model\\ModelManager')->getInstance('Application\\Model\\ApplicationBase'); }
/** * Setup */ protected function setUp() { // get service manager $this->serviceLocator = ApplicationBootstrap::getServiceLocator(); // get setting model $this->settingModel = $this->serviceLocator->get('Application\\Model\\ModelManager')->getInstance('Application\\Model\\ApplicationSetting'); // clear settings array $reflectionProperty = new ReflectionProperty($this->settingModel, 'settings'); $reflectionProperty->setAccessible(true); $reflectionProperty->setValue([]); }
/** * Setup */ protected function setUp() { // get service manager $this->serviceLocator = ApplicationBootstrap::getServiceLocator(); }