aboutsummaryrefslogtreecommitdiffstats
path: root/tests/passwords
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-05-27 18:26:51 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-06-01 21:31:04 +0200
commitb35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b (patch)
treee35e262b19528e1cf08fa3bbda70cd9db8ffdda0 /tests/passwords
parent3508409c89acd53943d7e9d1b32982fd021122f0 (diff)
downloadforums-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.tar
forums-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.tar.gz
forums-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.tar.bz2
forums-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.tar.xz
forums-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.zip
[ticket/12352] Add tests for functions in convert password driver
PHPBB3-12352
Diffstat (limited to 'tests/passwords')
-rw-r--r--tests/passwords/drivers_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/passwords/drivers_test.php b/tests/passwords/drivers_test.php
index cff03b02c9..70a320f4bd 100644
--- a/tests/passwords/drivers_test.php
+++ b/tests/passwords/drivers_test.php
@@ -28,6 +28,7 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
'passwords.driver.salted_md5' => new \phpbb\passwords\driver\salted_md5($config, $this->driver_helper),
'passwords.driver.phpass' => new \phpbb\passwords\driver\phpass($config, $this->driver_helper),
'passwords.driver.sha1_smf' => new \phpbb\passwords\driver\sha1_smf($config, $this->driver_helper),
+ 'passwords.driver.convert_password' => new \phpbb\passwords\driver\convert_password($config, $this->driver_helper),
'passwords.driver.phpbb2_md5' => new \phpbb\passwords\driver\phpbb2_md5($request, $phpbb_root_path, $php_ext),
);
}
@@ -152,4 +153,11 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
$this->assertSame(false, $this->passwords_drivers['passwords.driver.phpbb2_md5']->get_settings_only('ae2fc75e20ee25d4520766788fbc96ae'));
}
+
+ public function test_convert_password_driver()
+ {
+ $this->assertSame(false, $this->passwords_drivers['passwords.driver.convert_password']->hash('foobar'));
+
+ $this->assertSame(false, $this->passwords_drivers['passwords.driver.convert_password']->get_settings_only('ae2fc75e20ee25d4520766788fbc96ae'));
+ }
}