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
|
|
|
|
|
|
|
class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
|
|
protected function getInstance( array $args = [] ) {
|
|
|
|
return new ReCaptchaNoCaptchaAuthenticationRequest();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function provideLoadFromSubmission() {
|
|
|
|
return [
|
|
|
|
'no proof' => [ [], [], false ],
|
|
|
|
'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|