MediaWiki
REL1_33
TOTPAuthenticationRequestTest.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Auth\AuthenticationRequestTestCase
;
4
5
class
TOTPAuthenticationRequestTest
extends
AuthenticationRequestTestCase
{
6
7
protected
function
getInstance
(
array
$args
= [] ) {
8
return
new
TOTPAuthenticationRequest
();
9
}
10
11
public
function
provideLoadFromSubmission
() {
12
return
[
13
[ [], [],
false
],
14
[ [], [
'OATHToken'
=>
'123456'
], [
'OATHToken'
=>
'123456'
] ],
15
];
16
}
17
}
$args
if( $line===false) $args
Definition
cdb.php:64
MediaWiki\Auth\AuthenticationRequestTestCase
AuthManager.
Definition
AuthenticationRequestTestCase.php:8
TOTPAuthenticationRequestTest
Definition
TOTPAuthenticationRequestTest.php:5
TOTPAuthenticationRequestTest\getInstance
getInstance(array $args=[])
Definition
TOTPAuthenticationRequestTest.php:7
TOTPAuthenticationRequestTest\provideLoadFromSubmission
provideLoadFromSubmission()
Definition
TOTPAuthenticationRequestTest.php:11
TOTPAuthenticationRequest
AuthManager value object for the TOTP second factor of an authentication: a pseudorandom token that i...
Definition
TOTPAuthenticationRequest.php:26
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
OATHAuth
tests
phpunit
TOTPAuthenticationRequestTest.php
Generated on Mon Nov 25 2024 15:48:57 for MediaWiki by
1.10.0