Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
3 / 3
TitleBlacklistAuthenticationRequest
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getFieldInfo
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
<?php
namespace MediaWiki\Extension\TitleBlacklist;
use MediaWiki\Auth\AuthenticationRequest;
/**
 * An authentication request that allows users with sufficiently high privileges to skip the
 * title blacklist check.
 */
class TitleBlacklistAuthenticationRequest extends AuthenticationRequest {
    public $ignoreTitleBlacklist;
    public function getFieldInfo() {
        return [
            'ignoreTitleBlacklist' => [
                'type' => 'checkbox',
                'label' => wfMessage( 'titleblacklist-override' ),
                'help' => wfMessage( 'titleblacklist-override-help' ),
                'optional' => true,
            ],
        ];
    }
}