mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 09:30:06 +00:00
tests: Use static provider in AuthenticationRequestTest
Shows up a deprecation message Follow-Up: I5ff35ad0e894f0a27beae00257dc1fc599ad518d Change-Id: If9787b27c4598711a0e5127385dbee57dab55d66
This commit is contained in:
parent
40d826243e
commit
65470a1c77
|
@ -31,7 +31,7 @@ class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|||
];
|
||||
}
|
||||
|
||||
public function provideLoadFromSubmission() {
|
||||
public static function provideLoadFromSubmission() {
|
||||
return [
|
||||
'no id' => [
|
||||
[ '123', [ 'question' => '1+2', 'answer' => '3' ] ],
|
||||
|
|
|
@ -24,7 +24,7 @@ class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestT
|
|||
return new ReCaptchaNoCaptchaAuthenticationRequest();
|
||||
}
|
||||
|
||||
public function provideLoadFromSubmission() {
|
||||
public static function provideLoadFromSubmission() {
|
||||
return [
|
||||
'no proof' => [ [], [], false ],
|
||||
'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
|
||||
|
|
Loading…
Reference in a new issue