Merge "Fix doc for $item of ApiQueryBase::addPageSubItem"
[lhc/web/wiklou.git] / tests / phpunit / includes / auth / CreationReasonAuthenticationRequestTest.php
1 <?php
2
3 namespace MediaWiki\Auth;
4
5 /**
6 * @group AuthManager
7 * @covers \MediaWiki\Auth\CreationReasonAuthenticationRequest
8 */
9 class CreationReasonAuthenticationRequestTest extends AuthenticationRequestTestCase {
10
11 protected function getInstance( array $args = [] ) {
12 return new CreationReasonAuthenticationRequest();
13 }
14
15 public function provideLoadFromSubmission() {
16 return [
17 'Empty request' => [
18 [],
19 [],
20 false
21 ],
22 'Reason given' => [
23 [],
24 $data = [ 'reason' => 'Because' ],
25 $data,
26 ],
27 'Reason empty' => [
28 [],
29 [ 'reason' => '' ],
30 false
31 ],
32 ];
33 }
34 }