Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / includes / auth / UsernameAuthenticationRequestTest.php
blob9cc4da3d08d22b0bf50ebfcb61c51a81c0e81179
1 <?php
3 namespace MediaWiki\Tests\Auth;
5 use MediaWiki\Auth\UsernameAuthenticationRequest;
7 /**
8 * @group AuthManager
9 * @covers \MediaWiki\Auth\UsernameAuthenticationRequest
11 class UsernameAuthenticationRequestTest extends AuthenticationRequestTestCase {
13 protected function getInstance( array $args = [] ) {
14 return new UsernameAuthenticationRequest();
17 public static function provideLoadFromSubmission() {
18 return [
19 'Empty request' => [
20 [],
21 [],
22 false
24 'Username' => [
25 [],
26 $data = [ 'username' => 'User' ],
27 $data,
29 'Username empty' => [
30 [],
31 [ 'username' => '' ],
32 false