Debian Codegraph @

tests/phpunit/includes/auth/UsernameAuthenticationRequestTest.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Tests\Auth;
4
5 use MediaWiki\Auth\UsernameAuthenticationRequest;
6
7 /**
8 * @group AuthManager
9 * @covers \MediaWiki\Auth\UsernameAuthenticationRequest
10 */
11 class UsernameAuthenticationRequestTest extends AuthenticationRequestTestCase {
12
13 protected function getInstance( array $args = [] ) {
14 return new UsernameAuthenticationRequest();
15 }
16
17 public static function provideLoadFromSubmission() {
18 return [
19 'Empty request' => [
20 [],
21 [],
22 false
23 ],
24 'Username' => [
25 [],
26 $data = [ 'username' => 'User' ],
27 $data,
28 ],
29 'Username empty' => [
30 [],
31 [ 'username' => '' ],
32 false
33 ],
34 ];
35 }
36 }