diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-12-02 07:08:15 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-02 07:08:15 +0300 |
commit | a9038318a94cc32f0f15add5272322ff6afe71f5 (patch) | |
tree | 9bcd2bf82fe8087e819ce679d07c678b92660ec0 /plugins/UsersManager/tests/Fixtures | |
parent | c10a289bf1e6dc11347b3d0f7235ffd9fa9aaaad (diff) |
Password hashing (#10926)
Diffstat (limited to 'plugins/UsersManager/tests/Fixtures')
-rw-r--r-- | plugins/UsersManager/tests/Fixtures/ManyUsers.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/UsersManager/tests/Fixtures/ManyUsers.php b/plugins/UsersManager/tests/Fixtures/ManyUsers.php index b9c6821f67..b2be04550d 100644 --- a/plugins/UsersManager/tests/Fixtures/ManyUsers.php +++ b/plugins/UsersManager/tests/Fixtures/ManyUsers.php @@ -8,6 +8,7 @@ namespace Piwik\Plugins\UsersManager\tests\Fixtures; use Piwik\Plugins\UsersManager\API; +use Piwik\Plugins\UsersManager\Model; use Piwik\Tests\Framework\Fixture; /** @@ -51,6 +52,7 @@ class ManyUsers extends Fixture protected function setUpUsers() { + $model = new Model(); $api = API::getInstance(); foreach ($this->users as $login => $permissions) { $api->addUser($login, 'password', $login . '@example.com'); @@ -59,7 +61,8 @@ class ManyUsers extends Fixture $api->setUserAccess($login, $access, $idSites); } } - $user = $api->getUser($login); + + $user = $model->getUser($login); $this->users[$login]['token'] = $user['token_auth']; } |