mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-27 15:30:48 +00:00
tests: Use static provider in TitleBlacklistAuthenticationRequestTest
Shows up a deprecation message Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d Change-Id: I159d727d92ed1d5ca5721d9a290bff89c5922c8d
This commit is contained in:
parent
47b971ac4b
commit
7ece0eddd0
|
@ -10,7 +10,7 @@
|
|||
"license-name": "GPL-2.0-or-later",
|
||||
"type": "antispam",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.40.0"
|
||||
"MediaWiki": ">= 1.41.0"
|
||||
},
|
||||
"GroupPermissions": {
|
||||
"sysop": {
|
||||
|
|
|
@ -11,7 +11,7 @@ class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestC
|
|||
return new TitleBlacklistAuthenticationRequest();
|
||||
}
|
||||
|
||||
public function provideLoadFromSubmission() {
|
||||
public static function provideLoadFromSubmission() {
|
||||
return [
|
||||
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
|
||||
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
|
||||
|
|
Loading…
Reference in a new issue