mediawiki-extensions-TitleB.../tests/phpunit/TitleBlacklistAuthenticationRequestTest.php

20 lines
532 B
PHP
Raw Normal View History

<?php
use MediaWiki\Auth\AuthenticationRequestTestCase;
/**
* @covers TitleBlacklistAuthenticationRequest
*/
class TitleBlacklistAuthenticationRequestTest extends AuthenticationRequestTestCase {
protected function getInstance( array $args = [] ) {
return new TitleBlacklistAuthenticationRequest();
}
public function provideLoadFromSubmission() {
return [
'empty' => [ [], [], [ 'ignoreTitleBlacklist' => false ] ],
'true' => [ [], [ 'ignoreTitleBlacklist' => '1' ], [ 'ignoreTitleBlacklist' => true ] ],
];
}
}