Should MW Codesniffer also handle these as well? Change-Id: Ieb493bddd5f3674fb889b4a780d51b50d89c4f65
30 lines
649 B
PHP
30 lines
649 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Auth;
|
|
|
|
/**
|
|
* @group AuthManager
|
|
* @covers \MediaWiki\Auth\CreatedAccountAuthenticationRequest
|
|
*/
|
|
class CreatedAccountAuthenticationRequestTest extends AuthenticationRequestTestCase {
|
|
|
|
protected function getInstance( array $args = [] ) {
|
|
return new CreatedAccountAuthenticationRequest( 42, 'Test' );
|
|
}
|
|
|
|
public function testConstructor() {
|
|
$ret = new CreatedAccountAuthenticationRequest( 42, 'Test' );
|
|
$this->assertSame( 42, $ret->id );
|
|
$this->assertSame( 'Test', $ret->username );
|
|
}
|
|
|
|
public function provideLoadFromSubmission() {
|
|
return [
|
|
'Empty request' => [
|
|
[],
|
|
[],
|
|
false
|
|
],
|
|
];
|
|
}
|
|
}
|