/** * Change password */ public function testRecoverPasswordAction() { $userManager = new Users_Model_User_Manager(); $user = $userManager->forgetPassword($this->_user['email']); $hash = $user->hashCode; $this->dispatch('/recover-password/' . $hash); $this->assertModule('users'); $this->assertController('login'); $this->assertAction('recover-password'); $this->assertQueryCount('form#userNewPasswordForm', 1); $this->assertNotRedirect(); }