MediaWiki
REL1_33
ReCaptchaAuthenticationRequestTest.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Auth\AuthenticationRequestTestCase
;
4
8
class
ReCaptchaAuthenticationRequestTest
extends
AuthenticationRequestTestCase
{
9
protected
function
getInstance
(
array
$args
= [] ) {
10
return
new
ReCaptchaAuthenticationRequest
();
11
}
12
13
public
function
provideLoadFromSubmission
() {
14
return
[
15
'no challange id'
=> [ [], [
'captchaWord'
=>
'abc'
],
false
],
16
'no solution'
=> [ [], [
'captchaId'
=>
'123'
],
false
],
17
'normal'
=> [ [], [
'captchaId'
=>
'123'
,
'captchaWord'
=>
'abc'
],
18
[
'captchaId'
=>
'123'
,
'captchaWord'
=>
'abc'
] ],
19
];
20
}
21
}
$args
if( $line===false) $args
Definition
cdb.php:64
MediaWiki\Auth\AuthenticationRequestTestCase
AuthManager.
Definition
AuthenticationRequestTestCase.php:8
ReCaptchaAuthenticationRequestTest
ReCaptchaAuthenticationRequest.
Definition
ReCaptchaAuthenticationRequestTest.php:8
ReCaptchaAuthenticationRequestTest\provideLoadFromSubmission
provideLoadFromSubmission()
Definition
ReCaptchaAuthenticationRequestTest.php:13
ReCaptchaAuthenticationRequestTest\getInstance
getInstance(array $args=[])
Definition
ReCaptchaAuthenticationRequestTest.php:9
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
array
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
extensions
ConfirmEdit
tests
phpunit
ReCaptchaAuthenticationRequestTest.php
Generated on Mon Nov 25 2024 15:48:54 for MediaWiki by
1.10.0