3 use MediaWiki\Auth\AuthenticationRequestTestCase;
5 require_once __DIR__ . '/../../ReCaptcha/ReCaptchaAuthenticationRequest.php';
7 class ReCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
8 protected function getInstance( array $args = [] ) {
9 return new ReCaptchaAuthenticationRequest();
12 public function provideLoadFromSubmission() {
14 'no challange id' => [ [], [ 'captchaWord' => 'abc' ], false ],
15 'no solution' => [ [], [ 'captchaId' => '123' ], false ],
16 'normal' => [ [], [ 'captchaId' => '123', 'captchaWord' => 'abc' ],
17 [ 'captchaId' => '123', 'captchaWord' => 'abc' ] ],