Move ResultWrapper subclasses to Rdbms
[mediawiki.git] / tests / phpunit / includes / auth / CreationReasonAuthenticationRequestTest.php
blobcce1e8cdfb9ac2bdb3b9d4d5327f8db470184e00
1 <?php
3 namespace MediaWiki\Auth;
5 /**
6 * @group AuthManager
7 * @covers MediaWiki\Auth\CreationReasonAuthenticationRequest
8 */
9 class CreationReasonAuthenticationRequestTest extends AuthenticationRequestTestCase {
11 protected function getInstance( array $args = [] ) {
12 return new CreationReasonAuthenticationRequest();
15 public function provideLoadFromSubmission() {
16 return [
17 'Empty request' => [
18 [],
19 [],
20 false
22 'Reason given' => [
23 [],
24 $data = [ 'reason' => 'Because' ],
25 $data,
27 'Reason empty' => [
28 [],
29 [ 'reason' => '' ],
30 false