rdbms: Rename "memCache" to "memStash" in LBFactory
[mediawiki.git] / tests / phpunit / includes / password / MWOldPasswordTest.php
blob51e739cae772c0c87ae6ceb67418cd62fcadf927
1 <?php
3 /**
4 * @covers MWOldPassword
5 * @covers ParameterizedPassword
6 * @covers Password
7 */
8 class MWOldPasswordTest extends PasswordTestCase {
9 protected function getTypeConfigs() {
10 return [ 'A' => [
11 'class' => 'MWOldPassword',
12 ] ];
15 public static function providePasswordTests() {
16 return [
17 [ true, ':A:5f4dcc3b5aa765d61d8327deb882cf99', 'password' ],
18 // Type-B password with incorrect type name is accepted
19 [ true, ':A:salt:9842afc7cb949c440c51347ed809362f', 'password' ],
20 [ false, ':A:d529e941509eb9e9b9cfaeae1fe7ca23', 'password' ],
21 [ false, ':A:salt:d529e941509eb9e9b9cfaeae1fe7ca23', 'password' ],