32 [
'MediaWiki:Spam-blacklist',
'spam' ],
33 [
'MediaWiki:Spam-whitelist',
'spam' ],
34 [
'MediaWiki:Email-whitelist',
'email' ],
35 [
'MediaWiki:Email-blacklist',
'email' ],
36 [
'MediaWiki:A random page',
false ],
37 [
'Another random page',
false ],
47 $title = Title::newFromText( $title );
49 $this->assertEquals( $expected,
$output );
static provideGetTypeFromTitle()
testGetTypeFromTitle( $title, $expected)
provideGetTypeFromTitle
static getTypeFromTitle(Title $title)
Returns the type of blacklist from the given title.
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place $output
processing should stop and the error should be shown to the user * false