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