aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-08-22 19:31:35 -0500
committerMarc Alexander <admin@m-a-styles.de>2013-09-14 13:55:53 +0200
commitb810957c4bc4ffa86dd4db4cce26bd49d7008670 (patch)
tree057ac5ea093530b6aac63b4b9d3ce1b447815a41 /tests
parent8b9370c6a956447be304b609eb63d029cb19f2dc (diff)
downloadforums-b810957c4bc4ffa86dd4db4cce26bd49d7008670.tar
forums-b810957c4bc4ffa86dd4db4cce26bd49d7008670.tar.gz
forums-b810957c4bc4ffa86dd4db4cce26bd49d7008670.tar.bz2
forums-b810957c4bc4ffa86dd4db4cce26bd49d7008670.tar.xz
forums-b810957c4bc4ffa86dd4db4cce26bd49d7008670.zip
[feature/passwords] Properly set convert_flag and add test for it
PHPBB3-11610
Diffstat (limited to 'tests')
-rw-r--r--tests/crypto/manager_test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/crypto/manager_test.php b/tests/crypto/manager_test.php
index ceeb45b5b8..c396d092c1 100644
--- a/tests/crypto/manager_test.php
+++ b/tests/crypto/manager_test.php
@@ -126,6 +126,9 @@ class phpbb_crypto_manager_test extends PHPUnit_Framework_TestCase
$password .= $this->pw_characters[mt_rand(0, 66)];
$this->assertEquals(false, $this->manager->check_hash($password, $hash));
}
+
+ // Check if convert_flag is correctly set
+ $this->assertEquals(($hash_type !== 'crypto.driver.bcrypt_2y'), $this->manager->convert_flag);
}