Page MenuHomeWickedGov Phorge

ReCaptchaNoCaptchaAuthenticationRequestTest.php
No OneTemporary

Size
996 B
Referenced Files
None
Subscribers
None

ReCaptchaNoCaptchaAuthenticationRequestTest.php

<?php
use MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\ReCaptchaNoCaptchaAuthenticationRequest;
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
/**
* @covers \MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha\ReCaptchaNoCaptchaAuthenticationRequest
*/
class ReCaptchaNoCaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase {
public function setUp(): void {
parent::setUp();
$this->mergeMwGlobalArrayValue(
'wgAutoloadClasses',
[
'MediaWiki\\Extension\\ConfirmEdit\\ReCaptchaNoCaptcha\\ReCaptchaNoCaptchaAuthenticationRequest'
=> __DIR__ . '/../../ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaAuthenticationRequest.php'
]
);
}
protected function getInstance( array $args = [] ) {
return new ReCaptchaNoCaptchaAuthenticationRequest();
}
public static function provideLoadFromSubmission() {
return [
'no proof' => [ [], [], false ],
'normal' => [ [], [ 'captchaWord' => 'abc' ], [ 'captchaWord' => 'abc' ] ],
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 14:34 (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8c/b8/d1248f01f327ac0890e875cc7692
Default Alt Text
ReCaptchaNoCaptchaAuthenticationRequestTest.php (996 B)

Event Timeline