MediaWiki
REL1_31
CreatedAccountAuthenticationRequestTest.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Auth
;
4
9
class
CreatedAccountAuthenticationRequestTest
extends
AuthenticationRequestTestCase
{
10
11
protected
function
getInstance
( array
$args
= [] ) {
12
return
new
CreatedAccountAuthenticationRequest
( 42,
'Test'
);
13
}
14
15
public
function
testConstructor
() {
16
$ret
=
new
CreatedAccountAuthenticationRequest
( 42,
'Test'
);
17
$this->assertSame( 42,
$ret
->id );
18
$this->assertSame(
'Test'
,
$ret
->username );
19
}
20
21
public
function
provideLoadFromSubmission
() {
22
return
[
23
'Empty request'
=> [
24
[],
25
[],
26
false
27
],
28
];
29
}
30
}
$args
if( $line===false) $args
Definition
cdb.php:64
MediaWiki\Auth\AuthenticationRequestTestCase
AuthManager.
Definition
AuthenticationRequestTestCase.php:8
MediaWiki\Auth\CreatedAccountAuthenticationRequestTest
AuthManager MediaWiki\Auth\CreatedAccountAuthenticationRequest.
Definition
CreatedAccountAuthenticationRequestTest.php:9
MediaWiki\Auth\CreatedAccountAuthenticationRequestTest\provideLoadFromSubmission
provideLoadFromSubmission()
Definition
CreatedAccountAuthenticationRequestTest.php:21
MediaWiki\Auth\CreatedAccountAuthenticationRequestTest\testConstructor
testConstructor()
Definition
CreatedAccountAuthenticationRequestTest.php:15
MediaWiki\Auth\CreatedAccountAuthenticationRequestTest\getInstance
getInstance(array $args=[])
Definition
CreatedAccountAuthenticationRequestTest.php:11
MediaWiki\Auth\CreatedAccountAuthenticationRequest
Returned from account creation to allow for logging into the created account.
Definition
CreatedAccountAuthenticationRequest.php:29
$ret
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
Definition
hooks.txt:2005
false
processing should stop and the error should be shown to the user * false
Definition
hooks.txt:187
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
tests
phpunit
includes
auth
CreatedAccountAuthenticationRequestTest.php
Generated on Mon Nov 25 2024 15:36:17 for MediaWiki by
1.10.0