2016-05-03 16:42:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
|
|
|
2016-08-05 17:15:41 +00:00
|
|
|
require_once __DIR__ . '/../../ReCaptchaNoCaptcha/ReCaptchaNoCaptchaAuthenticationRequest.php';
|
2016-05-03 16:42:00 +00:00
|
|
|
|
2018-01-23 23:59:08 +00:00
|
|
|
/**
|
|
|
|
* @covers ReCaptchaNoCaptchaAuthenticationRequest
|
|
|
|
*/
|
2016-05-03 16:42:00 +00:00
|
|
|
class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
|
|
protected function getInstance( array $args = [] ) {
|
|
|
|
return new ReCaptchaNoCaptchaAuthenticationRequest();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function provideLoadFromSubmission() {
|
|
|
|
return [
|
|
|
|
'no proof' => [ [], [], false ],
|
|
|
|
'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|