public function setUp() { parent::setUp(); $this->controller = new $this->controllerStringName(); $this->request = $this->controller->getRequest(); $this->response = $this->controller->getResponse(); $this->routeMatch = new RouteMatch(array('controller' => 'index')); $this->event = new MvcEvent(); $config = $this->getService('Config'); $routerConfig = isset($config['router']) ? $config['router'] : array(); $router = HttpRouter::factory($routerConfig); $this->event->setRouter($router); $this->event->setRouteMatch($this->routeMatch); $this->controller->setEvent($this->event); $this->controller->setServiceLocator($this->serviceManager); }
public function deleteAction() { return parent::deleteAction(); }