aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-02-02 14:57:43 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-02-02 14:57:43 +0100
commitb094c7999660703370566018bf449a9280148b8d (patch)
treef5f1161c3fb4d9ac6e2bf02686d471d2651d6930 /tests
parent08a8bd8e6f2ae339fbb29e01ffb002942e7a89f3 (diff)
downloadforums-b094c7999660703370566018bf449a9280148b8d.tar
forums-b094c7999660703370566018bf449a9280148b8d.tar.gz
forums-b094c7999660703370566018bf449a9280148b8d.tar.bz2
forums-b094c7999660703370566018bf449a9280148b8d.tar.xz
forums-b094c7999660703370566018bf449a9280148b8d.zip
[feature/passwords] Move combined hashing methods to manager
This will get rid of the circular dependency between the passwords manager and the passwords helper. The combined_hash_password() method was also slightly changed to allow both the definitions of service names or prefixes for the hash types. PHPBB3-11610
Diffstat (limited to 'tests')
-rw-r--r--tests/passwords/manager_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/passwords/manager_test.php b/tests/passwords/manager_test.php
index 11efaa5afd..ee295ff043 100644
--- a/tests/passwords/manager_test.php
+++ b/tests/passwords/manager_test.php
@@ -198,6 +198,10 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase
array('passwords.driver.salted_md5'),
false,
),
+ array(
+ '$H$',
+ array('$2a$'),
+ ),
);
}
else
@@ -229,6 +233,10 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase
array('passwords.driver.salted_md4'),
false,
),
+ array(
+ '$H$',
+ array('$2y$'),
+ ),
);
}
}