aboutsummaryrefslogtreecommitdiffstats
path: root/tests/security
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-10-27 14:18:02 +0100
committerMarc Alexander <admin@m-a-styles.de>2013-10-27 14:18:02 +0100
commit5193b3279cfcd4f7f5d656ec806b87e971c5523f (patch)
tree45bb4f9fd78e8a34e2057593aa4b68de9135e86b /tests/security
parent760f148a2ba581df61a25d3efd0e438b5ea77e7b (diff)
downloadforums-5193b3279cfcd4f7f5d656ec806b87e971c5523f.tar
forums-5193b3279cfcd4f7f5d656ec806b87e971c5523f.tar.gz
forums-5193b3279cfcd4f7f5d656ec806b87e971c5523f.tar.bz2
forums-5193b3279cfcd4f7f5d656ec806b87e971c5523f.tar.xz
forums-5193b3279cfcd4f7f5d656ec806b87e971c5523f.zip
[feature/passwords] Pass list of default types to passwords manager
This list is in the order of how the driver types would be used. If a driver is not supported we will try the subsequent one. PHPBB3-11610
Diffstat (limited to 'tests/security')
-rw-r--r--tests/security/hash_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/security/hash_test.php b/tests/security/hash_test.php
index c1a8c206a8..1bccc6726f 100644
--- a/tests/security/hash_test.php
+++ b/tests/security/hash_test.php
@@ -19,8 +19,8 @@ class phpbb_security_hash_test extends phpbb_test_case
$phpbb_container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
$driver_helper = new \phpbb\passwords\driver\helper($config);
$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.bcrypt' => new \phpbb\passwords\driver\bcrypt($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),
);
@@ -32,7 +32,7 @@ class phpbb_security_hash_test extends phpbb_test_case
$passwords_helper = new \phpbb\passwords\helper;
// Set up passwords manager
- $passwords_manager = new \phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, 'passwords.driver.bcrypt_2y');
+ $passwords_manager = new \phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, array_keys($passwords_drivers));
$phpbb_container
->expects($this->any())