Move ResultWrapper subclasses to Rdbms
[mediawiki.git] / tests / phpunit / includes / auth / CreatedAccountAuthenticationRequestTest.php
blobfc1e6f15bbb5b37000f08a849292c103ee99b962
1 <?php
3 namespace MediaWiki\Auth;
5 /**
6 * @group AuthManager
7 * @covers MediaWiki\Auth\CreatedAccountAuthenticationRequest
8 */
9 class CreatedAccountAuthenticationRequestTest extends AuthenticationRequestTestCase {
11 protected function getInstance( array $args = [] ) {
12 return new CreatedAccountAuthenticationRequest( 42, 'Test' );
15 public function testConstructor() {
16 $ret = new CreatedAccountAuthenticationRequest( 42, 'Test' );
17 $this->assertSame( 42, $ret->id );
18 $this->assertSame( 'Test', $ret->username );
21 public function provideLoadFromSubmission() {
22 return [
23 'Empty request' => [
24 [],
25 [],
26 false