public function testNeverRenderFlagDisablesRendering()
 {
     $this->helper->setNeverRender();
     $this->request->setModuleName('bar')->setControllerName('index')->setActionName('test')->setDispatched(true);
     $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', $this->response->getBody());
 }
Exemplo n.º 2
0
 public function testNeverRenderFlag()
 {
     $this->assertFalse($this->helper->getNeverRender());
     $this->helper->setNeverRender();
     $this->assertTrue($this->helper->getNeverRender());
     $this->helper->setNeverRender(false);
     $this->assertFalse($this->helper->getNeverRender());
     $this->helper->setNeverRender(true);
     $this->assertTrue($this->helper->getNeverRender());
 }