/** * Test forget password * */ public function testForgetPasswordAction() { Users_Model_User_Manager::logout(); $user = $this->_userTable->createRow($this->_fixture); $user->save(); $this->dispatch('/users/register/forget-password'); $this->assertModule('users'); $this->assertController('register'); $this->assertAction('forget-password'); $this->assertQuery('form#userForgetPasswordForm'); //$this->markTestIncomplete('forget password don\'t pass this is test, hidden dependency?'); // $this->request // ->setMethod('POST') // ->setPost(array('email' => $this->_fixture['email'])); // // $this->dispatch('/users/register/forget-password'); // $this->assertModule('users'); // $this->assertController('register'); // $this->assertAction('forget-password'); // $this->assertRedirectTo("/login"); $user->delete(); }