public function setApp() { View::reset(); View::useLib('MockTest'); View::conf($this->toupticonf['viewConf']); MocktestView::useLib($this->toupticonf['view'] . 'View'); Controller::setResponse($this->response); Controller::setRequest($this->request); $this->app = new MiddlewareStack(); $this->toupti = new Toupti($this->toupticonf['toupti']); $this->app->add($this->toupti); }
public function testAddNotificationArray() { View::useLib('Mock'); $view = new View(); $view->notify(array('success', 'reload')); $this->assertEqual('reload', array_pop($view->getNotifs())); $this->assertEqual(2, count($view->getNotifs())); }