diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-09-22 21:17:30 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-09-22 21:17:30 +0200 |
commit | f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6 (patch) | |
tree | c77c4ea11f9947b1c2c50b3a517b05fa99de19d5 /tests/passwords | |
parent | 1970c69c8c9d6b898680aa3e94d5222c8f150d58 (diff) | |
download | forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar.gz forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar.bz2 forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.tar.xz forums-f5eb0d744e46a2931aa667dbc7a8a4d9ea0229e6.zip |
[feature/passwords] Use dependency injection for helper
This will now be used instead of manually loading the passwords helper
instance in the passwords manager.
PHPBB3-11610
Diffstat (limited to 'tests/passwords')
-rw-r--r-- | tests/passwords/manager_test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/passwords/manager_test.php b/tests/passwords/manager_test.php index 1ec7c40878..c695735aa6 100644 --- a/tests/passwords/manager_test.php +++ b/tests/passwords/manager_test.php @@ -40,8 +40,9 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase $this->phpbb_container->set($key, $driver); } - // Set up avatar manager - $this->manager = new phpbb_passwords_manager($config, $this->passwords_drivers, 'passwords.driver.bcrypt_2y'); + $this->helper = new phpbb_passwords_helper; + // Set up passwords manager + $this->manager = new phpbb_passwords_manager($config, $this->passwords_drivers, $this->helper, 'passwords.driver.bcrypt_2y'); } public function hash_password_data() |