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