/**
* @group Database
*/
-class TitlePermissionTest extends MediaWikiLangTestCase {
+class TitlePermissionTest extends MediaWikiTestCase {
protected $title;
protected $user;
protected $anonUser;
function setUp() {
global $wgLocaltimezone, $wgLocalTZoffset, $wgMemc, $wgContLang, $wgLang;
- parent::setUp();
if(!$wgMemc) {
$wgMemc = new EmptyBagOStuff;
}
}
- function tearDown() {
- parent::tearDown();
- }
-
function setUserPerm( $perm ) {
if ( is_array( $perm ) ) {
$this->user->mRights = $perm;
function setUp() {
- global $wgHooks;
+ global $wgContLang;
parent::setUp();
-
+ $wgContLang = Language::factory( 'en' );
$this->upload = new UploadTestHandler;
- $this->hooks = $wgHooks;
- $wgHooks['InterwikiLoadPrefix'][] = 'MediaWikiTestCase::disableInterwikis';
- }
-
- function tearDown() {
- $wgHooks = $this->hooks;
}
/**