<?php
+use MediaWiki\MediaWikiServices;
+
/**
* @group Database
*
$this->user = $this->userUser;
}
+ $this->overrideMwServices();
}
protected function setUserPerm( $perm ) {
/**
* @todo This test method should be split up into separate test methods and
* data providers
+ *
+ * This test is failing per T201776.
+ *
+ * @group Broken
* @covers Title::checkQuickPermissions
*/
public function testQuickPermissions() {
- global $wgContLang;
- $prefix = $wgContLang->getFormattedNsText( NS_PROJECT );
+ $prefix = MediaWikiServices::getInstance()->getContentLanguage()->
+ getFormattedNsText( NS_PROJECT );
$this->setUser( 'anon' );
$this->setTitle( NS_TALK );
/**
* @todo This test method should be split up into separate test methods and
* data providers
+ *
+ * This test is failing per T201776.
+ *
+ * @group Broken
* @covers Title::checkPageRestrictions
*/
public function testPageRestrictions() {
- global $wgContLang;
-
- $prefix = $wgContLang->getFormattedNsText( NS_PROJECT );
+ $prefix = MediaWikiServices::getInstance()->getContentLanguage()->
+ getFormattedNsText( NS_PROJECT );
$this->setTitle( NS_MAIN );
$this->title->mRestrictionsLoaded = true;