returnResponse(true); $this->_response = new Zend_Controller_Response_Http(); Setup::$front->setResponse($this->_response); // guest user $users = new Users(); $user = $users->createRow(); Zend_Registry::set('user', $user); } /** * @expectedException Monkeys_BadUrlException */ public function testIndexNoIdentityAction() { Setup::$front->setRequest(new TestRequest('/identity')); Setup::dispatch(); } public function testIdAction() { Setup::$front->setRequest(new TestRequest('/identity/whateva')); $_SERVER['SCRIPT_URI'] = 'http://localhost/communityid/identity/whateva'; Setup::dispatch(); $this->assertContains('', $this->_response->getBody()); $this->assertContains('

http://localhost/communityid/identity/whateva

', $this->_response->getBody()); } }