MediaWiki
1.34.4
TOTPAuthenticationRequestTest.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Extension\OATHAuth\Tests\Auth
;
4
5
use MediaWiki\Auth\AuthenticationRequestTestCase;
6
use
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest
;
7
8
class
TOTPAuthenticationRequestTest
extends
AuthenticationRequestTestCase {
9
10
protected
function
getInstance
( array
$args
= [] ) {
11
return
new
TOTPAuthenticationRequest
();
12
}
13
14
public
function
provideLoadFromSubmission
() {
15
return
[
16
[ [], [], false ],
17
[ [], [
'OATHToken'
=>
'123456'
], [
'OATHToken'
=>
'123456'
] ],
18
];
19
}
20
}
MediaWiki\Extension\OATHAuth\Tests\Auth\TOTPAuthenticationRequestTest\getInstance
getInstance(array $args=[])
Definition:
TOTPAuthenticationRequestTest.php:10
MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest
AuthManager value object for the TOTP second factor of an authentication: a pseudorandom token that i...
Definition:
TOTPAuthenticationRequest.php:29
MediaWiki\Extension\OATHAuth\Tests\Auth\TOTPAuthenticationRequestTest\provideLoadFromSubmission
provideLoadFromSubmission()
Definition:
TOTPAuthenticationRequestTest.php:14
MediaWiki\Extension\OATHAuth\Tests\Auth
Definition:
TOTPAuthenticationRequestTest.php:3
MediaWiki\Extension\OATHAuth\Tests\Auth\TOTPAuthenticationRequestTest
Definition:
TOTPAuthenticationRequestTest.php:8
$args
if( $line===false) $args
Definition:
cdb.php:64
extensions
OATHAuth
tests
phpunit
Auth
TOTPAuthenticationRequestTest.php
Generated on Thu Sep 24 2020 22:29:07 for MediaWiki by
1.8.18