diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-09-27 11:16:47 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-09-27 11:16:47 +0200 |
commit | 3f63b9b470b2848abdd6288a45ca56331a3bb77c (patch) | |
tree | 9eaee894e0813426c80e64c03eddde7ca18fbab4 /tests/passwords | |
parent | [feature/passwords] Add schema changes to schema_data for new hash types (diff) | |
download | phpbb-3f63b9b470b2848abdd6288a45ca56331a3bb77c.tar.gz phpbb-3f63b9b470b2848abdd6288a45ca56331a3bb77c.tar.bz2 phpbb-3f63b9b470b2848abdd6288a45ca56331a3bb77c.zip |
[feature/passwords] Modify passwords files for namespacing changes
PHPBB3-11610
Diffstat (limited to 'tests/passwords')
-rw-r--r-- | tests/passwords/manager_test.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/passwords/manager_test.php b/tests/passwords/manager_test.php index d06e09a014..c6ab731d7b 100644 --- a/tests/passwords/manager_test.php +++ b/tests/passwords/manager_test.php @@ -25,14 +25,14 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase $this->phpbb_container = new phpbb_mock_container_builder; // Prepare dependencies for manager and driver - $config = new phpbb_config(array()); - $driver_helper = new phpbb_passwords_driver_helper; + $config = new \phpbb\config\config(array()); + $driver_helper = new phpbb\passwords\driver\helper; $this->passwords_drivers = array( - 'passwords.driver.bcrypt' => new phpbb_passwords_driver_bcrypt($config, $driver_helper), - 'passwords.driver.bcrypt_2y' => new phpbb_passwords_driver_bcrypt_2y($config, $driver_helper), - 'passwords.driver.salted_md5' => new phpbb_passwords_driver_salted_md5($config, $driver_helper), - 'passwords.driver.phpass' => new phpbb_passwords_driver_phpass($config, $driver_helper), + 'passwords.driver.bcrypt' => new phpbb\passwords\driver\bcrypt($config, $driver_helper), + 'passwords.driver.bcrypt_2y' => new phpbb\passwords\driver\bcrypt_2y($config, $driver_helper), + 'passwords.driver.salted_md5' => new phpbb\passwords\driver\salted_md5($config, $driver_helper), + 'passwords.driver.phpass' => new phpbb\passwords\driver\phpass($config, $driver_helper), ); foreach ($this->passwords_drivers as $key => $driver) @@ -41,9 +41,9 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase $this->phpbb_container->set($key, $driver); } - $this->helper = new phpbb_passwords_helper; + $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'); + $this->manager = new phpbb\passwords\manager($config, $this->passwords_drivers, $this->helper, 'passwords.driver.bcrypt_2y'); } public function hash_password_data() |