mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
5b7a36a521
Change-Id: Ie956fe86184535a376d0398483ac3c853fa9127c
22 lines
617 B
PHP
22 lines
617 B
PHP
<?php
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
|
|
/**
|
|
* @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' ] ],
|
|
];
|
|
}
|
|
}
|