public function setup() { global $wgContLang; parent::setup(); $this->setMwGlobals(array('wgExtraNamespaces' => array(12312 => 'Dummy', 12313 => 'Dummy_talk'), 'wgNamespaceContentModels' => array(12312 => 'testing'), 'wgContentHandlers' => array(CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', CONTENT_MODEL_CSS => 'CssContentHandler', CONTENT_MODEL_TEXT => 'TextContentHandler', 'testing' => 'DummyContentHandlerForTesting'))); // Reset namespace cache MWNamespace::getCanonicalNamespaces(true); $wgContLang->resetNamespaces(); }
public function setup() { parent::setup(); $this->saveAllowImport = WikibaseRepo::getDefaultInstance()->getSettings()->getSetting('allowEntityImport'); }