Update mediawiki/at-ease
[lhc/web/wiklou.git] / tests / phpunit / includes / auth / UsernameAuthenticationRequestTest.php
1 <?php
2
3 namespace MediaWiki\Auth;
4
5 /**
6 * @group AuthManager
7 * @covers MediaWiki\Auth\UsernameAuthenticationRequest
8 */
9 class UsernameAuthenticationRequestTest extends AuthenticationRequestTestCase {
10
11 protected function getInstance( array $args = [] ) {
12 return new UsernameAuthenticationRequest();
13 }
14
15 public function provideLoadFromSubmission() {
16 return [
17 'Empty request' => [
18 [],
19 [],
20 false
21 ],
22 'Username' => [
23 [],
24 $data = [ 'username' => 'User' ],
25 $data,
26 ],
27 'Username empty' => [
28 [],
29 [ 'username' => '' ],
30 false
31 ],
32 ];
33 }
34 }