summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php
blob: d4917b51a40c4cd85f1b94f1056a5bd947c844cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

use MediaWiki\Auth\AuthenticationRequestTestCase;

require_once __DIR__ . '/../../ReCaptchaNoCaptcha/ReCaptchaNoCaptchaAuthenticationRequest.php';

/**
 * @covers ReCaptchaNoCaptchaAuthenticationRequest
 */
class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
	protected function getInstance( array $args = [] ) {
		return new ReCaptchaNoCaptchaAuthenticationRequest();
	}

	public function provideLoadFromSubmission() {
		return [
			'no proof' => [ [], [], false ],
			'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
		];
	}
}