aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-09-27 11:16:47 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-09-27 11:16:47 +0200
commit3f63b9b470b2848abdd6288a45ca56331a3bb77c (patch)
tree9eaee894e0813426c80e64c03eddde7ca18fbab4 /tests
parente41c9ef6cdab65921f1bc283504e7c5fb552d659 (diff)
downloadforums-3f63b9b470b2848abdd6288a45ca56331a3bb77c.tar
forums-3f63b9b470b2848abdd6288a45ca56331a3bb77c.tar.gz
forums-3f63b9b470b2848abdd6288a45ca56331a3bb77c.tar.bz2
forums-3f63b9b470b2848abdd6288a45ca56331a3bb77c.tar.xz
forums-3f63b9b470b2848abdd6288a45ca56331a3bb77c.zip
[feature/passwords] Modify passwords files for namespacing changes
PHPBB3-11610
Diffstat (limited to 'tests')
-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()