MediaWiki
REL1_31
MWOldPasswordTest.php
Go to the documentation of this file.
1
<?php
2
8
class
MWOldPasswordTest
extends
PasswordTestCase
{
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
}
MWOldPasswordTest
MWOldPassword ParameterizedPassword Password.
Definition
MWOldPasswordTest.php:8
MWOldPasswordTest\providePasswordTests
static providePasswordTests()
An array of tests in the form of (bool, string, string), where the first element is whether the secon...
Definition
MWOldPasswordTest.php:15
MWOldPasswordTest\getTypeConfigs
getTypeConfigs()
Return an array of configs to be used for this class's password type.
Definition
MWOldPasswordTest.php:9
PasswordTestCase
Definition
PasswordTestCase.php:26
tests
phpunit
includes
password
MWOldPasswordTest.php
Generated on Mon Nov 25 2024 15:36:31 for MediaWiki by
1.10.0