Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / includes / auth / CreatedAccountAuthenticationRequestTest.php
bloba57041d3c88ca754c24d6a8c1b1e8c1f90161011
1 <?php
3 namespace MediaWiki\Tests\Auth;
5 use MediaWiki\Auth\CreatedAccountAuthenticationRequest;
7 /**
8 * @group AuthManager
9 * @covers \MediaWiki\Auth\CreatedAccountAuthenticationRequest
11 class CreatedAccountAuthenticationRequestTest extends AuthenticationRequestTestCase {
13 protected function getInstance( array $args = [] ) {
14 return new CreatedAccountAuthenticationRequest( 42, 'Test' );
17 public function testConstructor() {
18 $ret = new CreatedAccountAuthenticationRequest( 42, 'Test' );
19 $this->assertSame( 42, $ret->id );
20 $this->assertSame( 'Test', $ret->username );
23 public static function provideLoadFromSubmission() {
24 return [
25 'Empty request' => [
26 [],
27 [],
28 false