74 $this->setMwGlobals(
'wgBlacklistSettings', [
78 \MessageCache::singleton()->enable();
79 $this->insertPage(
'MediaWiki:Spam-blacklist', implode(
"\n", $this->blacklist ) );
80 $this->insertPage(
'MediaWiki:Spam-whitelist', implode(
"\n", $this->whitelist ) );
84 $reflProp = new \ReflectionProperty( $instance,
'regexes' );
85 $reflProp->setAccessible(
true );
86 $reflProp->setValue( $instance,
false );