Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit a4ee0d2

Browse files
author
Michael Grauer
committed
ENH: refs #952. Updated test to expect changing password will update scheme.
1 parent 030e441 commit a4ee0d2

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

core/tests/controllers/UserControllerTest.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,8 @@ public function testSettingsAction()
235235
$this->assertQuery("div#tabsSettings");
236236
$this->assertQuery("li.settingsCommunityList");
237237

238-
$this->resetAll();
239-
$this->params = array();
240-
$this->params['modifyPassword'] = 'true';
241-
$this->params['oldPassword'] = 'test';
242-
$this->params['newPassword'] = 'newPassword';
243-
$this->request->setMethod('POST');
244-
$this->dispatchUrI("/user/settings", $userDao);
245-
$resp = json_decode($this->getBody());
246-
$this->assertTrue($resp[0] == false);
247-
248-
// Store old password so it will authenticate
249238
$instanceSalt = Zend_Registry::get('configGlobal')->password->prefix;
250-
$this->User->storePasswordHash(hash('sha256', $instanceSalt.$userDao->getSalt().'test'));
239+
// By changing password we will update the salt and hash
251240
$this->resetAll();
252241
$this->params = array();
253242
$this->params['modifyPassword'] = 'true';

0 commit comments

Comments
 (0)