function testQuickPermissions() {
global $wgContLang;
- $prefix = $wgContLang->getNsText( NS_PROJECT );
+ $prefix = $wgContLang->getFormattedNsText( NS_PROJECT );
$this->setUser( 'anon' );
$this->setTitle( NS_TALK );
$this->setUser( self::$userName );
global $wgUser, $wgContLang;
$wgUser = self::$user;
- $prefix = $wgContLang->getNsText( NS_PROJECT );
+ $prefix = $wgContLang->getFormattedNsText( NS_PROJECT );
$this->setTitle( NS_SPECIAL );
function testPageRestrictions() {
global $wgUser, $wgContLang;
- $prefix = $wgContLang->getNsText( NS_PROJECT );
+ $prefix = $wgContLang->getFormattedNsText( NS_PROJECT );
$wgUser = self::$user;
$this->setTitle( NS_MAIN );