mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-25 00:26:06 +00:00
6a8c53f6d1
No longer needed now that extension unittests are autodiscovered. Bug: T142120 Bug: T142121 Change-Id: I7105170e56c8c3ec3837dd15be869e503bccecde
21 lines
646 B
PHP
21 lines
646 B
PHP
<?php
|
|
|
|
use MediaWiki\Auth\AuthenticationRequestTestCase;
|
|
|
|
require_once __DIR__ . '/../../ReCaptcha/ReCaptchaAuthenticationRequest.php';
|
|
|
|
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' ] ],
|
|
];
|
|
}
|
|
}
|