From a4ee0d26871166b2b8c9ef2a2c11f9ca4276a2ee Mon Sep 17 00:00:00 2001 From: Michael Grauer Date: Thu, 14 Mar 2013 14:33:58 -0400 Subject: [PATCH] ENH: refs #952. Updated test to expect changing password will update scheme. --- core/tests/controllers/UserControllerTest.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/core/tests/controllers/UserControllerTest.php b/core/tests/controllers/UserControllerTest.php index e065496ee..7fc150d15 100644 --- a/core/tests/controllers/UserControllerTest.php +++ b/core/tests/controllers/UserControllerTest.php @@ -235,19 +235,8 @@ public function testSettingsAction() $this->assertQuery("div#tabsSettings"); $this->assertQuery("li.settingsCommunityList"); - $this->resetAll(); - $this->params = array(); - $this->params['modifyPassword'] = 'true'; - $this->params['oldPassword'] = 'test'; - $this->params['newPassword'] = 'newPassword'; - $this->request->setMethod('POST'); - $this->dispatchUrI("/user/settings", $userDao); - $resp = json_decode($this->getBody()); - $this->assertTrue($resp[0] == false); - - // Store old password so it will authenticate $instanceSalt = Zend_Registry::get('configGlobal')->password->prefix; - $this->User->storePasswordHash(hash('sha256', $instanceSalt.$userDao->getSalt().'test')); + // By changing password we will update the salt and hash $this->resetAll(); $this->params = array(); $this->params['modifyPassword'] = 'true';