MediaWiki
REL1_31
ReCaptchaNoCaptchaAuthenticationRequestTest.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Auth\AuthenticationRequestTestCase
;
4
5
require_once __DIR__ .
'/../../ReCaptchaNoCaptcha/ReCaptchaNoCaptchaAuthenticationRequest.php'
;
6
10
class
ReCaptchaNoCaptchaAuthenticationRequestTest
extends
AuthenticationRequestTestCase
{
11
protected
function
getInstance
( array
$args
= [] ) {
12
return
new
ReCaptchaNoCaptchaAuthenticationRequest
();
13
}
14
15
public
function
provideLoadFromSubmission
() {
16
return
[
17
'no proof'
=> [ [], [],
false
],
18
'normal'
=> [ [], [
'captchaWord'
=>
'abc'
], [
'captchaWord'
=>
'abc'
] ],
19
];
20
}
21
}
$args
if( $line===false) $args
Definition
cdb.php:64
MediaWiki\Auth\AuthenticationRequestTestCase
AuthManager.
Definition
AuthenticationRequestTestCase.php:8
ReCaptchaNoCaptchaAuthenticationRequestTest
ReCaptchaNoCaptchaAuthenticationRequest.
Definition
ReCaptchaNoCaptchaAuthenticationRequestTest.php:10
ReCaptchaNoCaptchaAuthenticationRequestTest\provideLoadFromSubmission
provideLoadFromSubmission()
Definition
ReCaptchaNoCaptchaAuthenticationRequestTest.php:15
ReCaptchaNoCaptchaAuthenticationRequestTest\getInstance
getInstance(array $args=[])
Definition
ReCaptchaNoCaptchaAuthenticationRequestTest.php:11
ReCaptchaNoCaptchaAuthenticationRequest
Authentication request for ReCaptcha v2.
Definition
ReCaptchaNoCaptchaAuthenticationRequest.php:9
false
processing should stop and the error should be shown to the user * false
Definition
hooks.txt:187
extensions
ConfirmEdit
tests
phpunit
ReCaptchaNoCaptchaAuthenticationRequestTest.php
Generated on Mon Nov 25 2024 15:34:18 for MediaWiki by
1.10.0