mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-30 10:54:53 +00:00
e1f45829d4
Change-Id: I1e99261acb13c86e96c1b2dd1cb61918ebc660c2
24 lines
696 B
PHP
24 lines
696 B
PHP
<?php
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
|
|
require_once __DIR__ . '/../../ReCaptcha/ReCaptchaAuthenticationRequest.php';
|
|
|
|
/**
|
|
* @covers ReCaptchaAuthenticationRequest
|
|
*/
|
|
class ReCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
protected function getInstance( array $args = [] ) {
|
|
return new ReCaptchaAuthenticationRequest();
|
|
}
|
|
|
|
public function provideLoadFromSubmission() {
|
|
return [
|
|
'no challange id' => [ [], [ 'captchaWord' => 'abc' ], false ],
|
|
'no solution' => [ [], [ 'captchaId' => '123' ], false ],
|
|
'normal' => [ [], [ 'captchaId' => '123', 'captchaWord' => 'abc' ],
|
|
[ 'captchaId' => '123', 'captchaWord' => 'abc' ] ],
|
|
];
|
|
}
|
|
}
|