Debian Codegraph @

extensions/ConfirmEdit/tests/phpunit/ReCaptchaNoCaptchaAuthenticationRequestTest.php

raw symbols SCIP
1 <?php
2
3 use MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\ReCaptchaNoCaptchaAuthenticationRequest;
4 use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
5
6 /**
7 * @covers \MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\ReCaptchaNoCaptchaAuthenticationRequest
8 */
9 class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
10
11 public function setUp(): void {
12 parent::setUp();
13
14 $this->mergeMwGlobalArrayValue(
15 'wgAutoloadClasses',
16 [
17 'MediaWiki\\Extension\\ConfirmEdit\\ReCaptchaNoCaptcha\\ReCaptchaNoCaptchaAuthenticationRequest'
18 => __DIR__ . '/../../ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaAuthenticationRequest.php'
19 ]
20 );
21 }
22
23 protected function getInstance( array $args = [] ) {
24 return new ReCaptchaNoCaptchaAuthenticationRequest();
25 }
26
27 public static function provideLoadFromSubmission() {
28 return [
29 'no proof' => [ [], [], false ],
30 'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
31 ];
32 }
33 }