wiki.techinc.nl/tests/phpunit/includes/auth/CreatedAccountAuthenticationRequestTest.php
Reedy e94e265a93 tests: Add Tests to PHP namespacing
Change-Id: I849268172751d50292e93aa75abe8094873f56bc
2024-02-16 19:10:11 +00:00

32 lines
719 B
PHP

<?php
namespace MediaWiki\Tests\Auth;
use MediaWiki\Auth\CreatedAccountAuthenticationRequest;
/**
* @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 static function provideLoadFromSubmission() {
return [
'Empty request' => [
[],
[],
false
],
];
}
}