2016-05-03 16:42:00 +00:00
|
|
|
<?php
|
|
|
|
|
2022-04-08 16:53:12 +00:00
|
|
|
use MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\ReCaptchaNoCaptchaAuthenticationRequest;
|
2024-06-08 21:46:45 +00:00
|
|
|
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
|
2016-05-03 16:42:00 +00:00
|
|
|
|
2018-01-23 23:59:08 +00:00
|
|
|
/**
|
2022-04-08 16:53:12 +00:00
|
|
|
* @covers \MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\ReCaptchaNoCaptchaAuthenticationRequest
|
2018-01-23 23:59:08 +00:00
|
|
|
*/
|
2016-05-03 16:42:00 +00:00
|
|
|
class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
2022-04-08 16:53:12 +00:00
|
|
|
|
2016-05-03 16:42:00 +00:00
|
|
|
protected function getInstance( array $args = [] ) {
|
|
|
|
return new ReCaptchaNoCaptchaAuthenticationRequest();
|
|
|
|
}
|
|
|
|
|
2023-05-19 20:26:53 +00:00
|
|
|
public static function provideLoadFromSubmission() {
|
2016-05-03 16:42:00 +00:00
|
|
|
return [
|
|
|
|
'no proof' => [ [], [], false ],
|
|
|
|
'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|