diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-05-27 18:26:51 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-06-01 21:31:04 +0200 |
commit | b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b (patch) | |
tree | e35e262b19528e1cf08fa3bbda70cd9db8ffdda0 /tests/passwords | |
parent | [ticket/12352] Add tests for phpBB2 md5 passwords driver (diff) | |
download | phpbb-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.tar.gz phpbb-b35ed3bc69ac0cdd63791d89f1941b1bb8c69c0b.tar.bz2 phpbb-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.php | 8 |
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')); + } } |