Beispiel #1
0
 public function testPostDispatchDoesNothingOnRedirect()
 {
     $this->request->setModuleName('bar')->setControllerName('index')->setActionName('test')->setDispatched(true);
     $this->response->setHTTPResponseCode(302);
     $controller = new \Bar_IndexController($this->request, $this->response, array());
     $this->helper->setActionController($controller);
     $this->helper->postDispatch();
     $content = $this->response->getBody();
     $this->assertNotContains('Rendered index/test.phtml in bar module', $content);
     $this->assertTrue(empty($content));
 }