aboutsummaryrefslogtreecommitdiffstats
path: root/tests/passwords
diff options
context:
space:
mode:
Diffstat (limited to 'tests/passwords')
-rw-r--r--tests/passwords/manager_test.php16
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()