aboutsummaryrefslogtreecommitdiffstats
path: root/tests/crypto/manager_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/crypto/manager_test.php')
-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);
}