MediaWiki REL1_31
MWOldPasswordTest.php
Go to the documentation of this file.
1<?php
2
9 protected function getTypeConfigs() {
10 return [ 'A' => [
11 'class' => MWOldPassword::class,
12 ] ];
13 }
14
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' ],
22 ];
23 }
24}
MWOldPassword ParameterizedPassword Password.
static providePasswordTests()
An array of tests in the form of (bool, string, string), where the first element is whether the secon...
getTypeConfigs()
Return an array of configs to be used for this class's password type.