wiki.techinc.nl/tests/phpunit/unit/includes/password/MWOldPasswordTest.php
Max Semenik e47e5b2ab1 Unitify most password-related tests
Change-Id: Ied0765ff61976968d80ea7ad84b1b6dd7ae6169b
2019-11-10 14:35:27 -08:00

24 lines
647 B
PHP

<?php
/**
* @covers MWOldPassword
* @covers ParameterizedPassword
* @covers Password
*/
class MWOldPasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
return [ 'A' => [
'class' => MWOldPassword::class,
] ];
}
public static function providePasswordTests() {
return [
[ true, ':A:5f4dcc3b5aa765d61d8327deb882cf99', 'password' ],
// Type-B password with incorrect type name is accepted
[ true, ':A:salt:9842afc7cb949c440c51347ed809362f', 'password' ],
[ false, ':A:d529e941509eb9e9b9cfaeae1fe7ca23', 'password' ],
[ false, ':A:salt:d529e941509eb9e9b9cfaeae1fe7ca23', 'password' ],
];
}
}