Debian Codegraph @

tests/phpunit/includes/auth/CreationReasonAuthenticationRequestTest.php

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