MediaWiki REL1_31
CreatedAccountAuthenticationRequestTest.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Auth;
4
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}
if( $line===false) $args
Definition cdb.php:64
AuthManager MediaWiki\Auth\CreatedAccountAuthenticationRequest.
Returned from account creation to allow for logging into the created account.
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
processing should stop and the error should be shown to the user * false
Definition hooks.txt:187