aboutsummaryrefslogtreecommitdiffstats
path: root/tests/passwords
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-05-30 00:22:55 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-06-01 21:31:05 +0200
commit4b3aacfd18a8a3334532f9fcc830affb5f12963b (patch)
tree6ce9269161c3e26c8229ea4cf127a3a2c61a98a0 /tests/passwords
parentf3eba6275a6965f866b6e3bed7ce5330a14eb960 (diff)
downloadforums-4b3aacfd18a8a3334532f9fcc830affb5f12963b.tar
forums-4b3aacfd18a8a3334532f9fcc830affb5f12963b.tar.gz
forums-4b3aacfd18a8a3334532f9fcc830affb5f12963b.tar.bz2
forums-4b3aacfd18a8a3334532f9fcc830affb5f12963b.tar.xz
forums-4b3aacfd18a8a3334532f9fcc830affb5f12963b.zip
[ticket/12352] Add get_settings_only method to passwords driver base
PHPBB3-12352
Diffstat (limited to 'tests/passwords')
-rw-r--r--tests/passwords/drivers_test.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/passwords/drivers_test.php b/tests/passwords/drivers_test.php
index d562f50d25..ccfb05c40f 100644
--- a/tests/passwords/drivers_test.php
+++ b/tests/passwords/drivers_test.php
@@ -156,25 +156,19 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
$this->assertSame($expected, $this->passwords_drivers['passwords.driver.md5_phpbb2']->check($password, $hash));
}
- public function test_md5_phpbb2_unneeded_functions()
+ public function test_md5_phpbb2_hash()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.md5_phpbb2']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.md5_phpbb2']->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'));
}
public function test_sha1_driver()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.sha1']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.sha1']->get_settings_only('ae2fc75e20ee25d4520766788fbc96ae'));
}
public function data_md5_mybb_check()
@@ -197,8 +191,6 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
public function test_md5_mybb_driver()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.md5_mybb']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.md5_mybb']->get_settings_only('6022de2cc0ecf59ff14b57c6205ee170'));
}
public function data_md5_vb_check()
@@ -223,8 +215,6 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
public function test_md5_vb_driver()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.md5_vb']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.md5_vb']->get_settings_only('6022de2cc0ecf59ff14b57c6205ee170'));
}
public function data_sha1_wcf1_check()
@@ -247,8 +237,6 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
public function test_sha1_wcf1_driver()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.sha1_wcf1']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.sha1_wcf1']->get_settings_only('6022de2cc0ecf59ff14b57c6205ee170'));
}
public function data_bcrypt_wcf2_check()
@@ -271,8 +259,6 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
public function test_bcrypt_wcf2_driver()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.bcrypt_wcf2']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.bcrypt_wcf2']->get_settings_only('6022de2cc0ecf59ff14b57c6205ee170'));
}
public function data_sha_xf1_check()
@@ -296,8 +282,6 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
public function test_sha_xf1_driver()
{
$this->assertSame(false, $this->passwords_drivers['passwords.driver.sha_xf1']->hash('foobar'));
-
- $this->assertSame(false, $this->passwords_drivers['passwords.driver.sha_xf1']->get_settings_only('6022de2cc0ecf59ff14b57c6205ee170'));
}
protected function utf8_to_cp1252($string)