setMwGlobals( $config ); $this->setMwGlobals( [ 'wgArticlePath' => $config['wgArticlePath'], 'wgNamespaceAliases' => $config['wgNamespaceIds'], 'wgMetaNamespace' => strtr( $config['wgFormattedNamespaces'][NS_PROJECT], ' ', '_' ), 'wgMetaNamespaceTalk' => strtr( $config['wgFormattedNamespaces'][NS_PROJECT_TALK], ' ', '_' ), // TODO: Move this to $config 'wgLocaltimezone' => $data['localTimezone'], // Data used for the tests assumes there are no variants for English. // Language variants are tested using other languages. 'wgUsePigLatinVariant' => false, ] ); $this->setUserLang( $config['wgContentLanguage'] ); $this->setContentLang( $config['wgContentLanguage'] ); } }