aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-08-22 19:21:42 -0500
committerMarc Alexander <admin@m-a-styles.de>2013-09-14 13:55:45 +0200
commit8b9370c6a956447be304b609eb63d029cb19f2dc (patch)
tree97ed901c76445f1b521c383610b5b046e03eff51 /tests
parent58755c4972128923f12cc1511bd24c36912bf890 (diff)
downloadforums-8b9370c6a956447be304b609eb63d029cb19f2dc.tar
forums-8b9370c6a956447be304b609eb63d029cb19f2dc.tar.gz
forums-8b9370c6a956447be304b609eb63d029cb19f2dc.tar.bz2
forums-8b9370c6a956447be304b609eb63d029cb19f2dc.tar.xz
forums-8b9370c6a956447be304b609eb63d029cb19f2dc.zip
[feature/passwords] Define default hashing algorithm in container file
The default hashing algorithm type is defined as a parameter in the service definition file for the password hashing system. This will allow us to change this in the future but it will also prevent unexperienced admins from changing the hashing algorithm. PHPBB3-11610
Diffstat (limited to 'tests')
-rw-r--r--tests/crypto/manager_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/crypto/manager_test.php b/tests/crypto/manager_test.php
index ba13c9c8ad..ceeb45b5b8 100644
--- a/tests/crypto/manager_test.php
+++ b/tests/crypto/manager_test.php
@@ -41,11 +41,12 @@ class phpbb_crypto_manager_test extends PHPUnit_Framework_TestCase
foreach ($this->crypto_drivers as $key => $driver)
{
+ $driver->set_name($key);
$this->phpbb_container->set($key, $driver);
}
// Set up avatar manager
- $this->manager = new phpbb_crypto_manager($config, $this->phpbb_container, $this->crypto_drivers);
+ $this->manager = new phpbb_crypto_manager($config, $this->phpbb_container, $this->crypto_drivers, 'crypto.driver.bcrypt_2y');
}
public function hash_password_data()