MediaWiki REL1_32
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:2054
processing should stop and the error should be shown to the user * false
Definition hooks.txt:187
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))