diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-05-01 14:25:16 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-06-01 21:31:04 +0200 |
commit | 57e4fb38106a3ece446b8713693f89c8745538dc (patch) | |
tree | 51d0d33cbd96864f0f4259765ada06953e2f68fb | |
parent | ed1d4fe4a03c55bbc997f11afa11a87b4fe78c4d (diff) | |
download | forums-57e4fb38106a3ece446b8713693f89c8745538dc.tar forums-57e4fb38106a3ece446b8713693f89c8745538dc.tar.gz forums-57e4fb38106a3ece446b8713693f89c8745538dc.tar.bz2 forums-57e4fb38106a3ece446b8713693f89c8745538dc.tar.xz forums-57e4fb38106a3ece446b8713693f89c8745538dc.zip |
[ticket/12352] Add tests for checking smf passwords
PHPBB3-12352
-rw-r--r-- | tests/passwords/manager_test.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/passwords/manager_test.php b/tests/passwords/manager_test.php index 83ae233e3c..c2fda170a1 100644 --- a/tests/passwords/manager_test.php +++ b/tests/passwords/manager_test.php @@ -139,15 +139,18 @@ class phpbb_passwords_manager_test extends \phpbb_test_case array('foobar', '$H$kklk938d023k//k3023', false), array('foobar', '$H$3PtYMgXb39lrIWkgoxYLWtRkZtY3AY/', false), array('foobar', '$2a$kwiweorurlaeirw', false), + array('foobar', '6f9e2a1899e1f15708fd2e554103480eb53e8b57', false), + array('foobar', '6f9e2a1899e1f15708fd2e554103480eb53e8b57', true, array('login_name' => 'test')), + array('foobar', '6f9e2a1899', false, array('login_name' => 'test')), ); } /** * @dataProvider check_hash_exceptions_data */ - public function test_check_hash_exceptions($password, $hash, $expected) + public function test_check_hash_exceptions($password, $hash, $expected, $user_row = array()) { - $this->assertEquals($expected, $this->manager->check($password, $hash)); + $this->assertEquals($expected, $this->manager->check($password, $hash, $user_row)); } public function data_hash_password_length() |