wiki.techinc.nl/tests/phpunit/includes/auth/CreationReasonAuthenticationRequestTest.php
Alangi Derick b86593a2da Fix undefined NS with @covers tags in /includes/auth/
Should MW Codesniffer also handle these as well?

Change-Id: Ieb493bddd5f3674fb889b4a780d51b50d89c4f65
2018-11-01 12:48:52 +01:00

34 lines
606 B
PHP

<?php
namespace MediaWiki\Auth;
/**
* @group AuthManager
* @covers \MediaWiki\Auth\CreationReasonAuthenticationRequest
*/
class CreationReasonAuthenticationRequestTest extends AuthenticationRequestTestCase {
protected function getInstance( array $args = [] ) {
return new CreationReasonAuthenticationRequest();
}
public function provideLoadFromSubmission() {
return [
'Empty request' => [
[],
[],
false
],
'Reason given' => [
[],
$data = [ 'reason' => 'Because' ],
$data,
],
'Reason empty' => [
[],
[ 'reason' => '' ],
false
],
];
}
}