3 namespace MediaWiki\Tests\Auth
;
5 use MediaWiki\Auth\CreatedAccountAuthenticationRequest
;
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() {