/**
* @group Database
*/
-class TitlePermissionTest extends MediaWikiTestCase {
+class TitlePermissionTest extends MediaWikiLangTestCase {
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 $wgContLang;
+ global $wgHooks;
parent::setUp();
- $wgContLang = Language::factory( 'en' );
+
$this->upload = new UploadTestHandler;
+ $this->hooks = $wgHooks;var_dump($wgHooks);
+ $wgHooks['InterwikiLoadPrefix'][] = 'MediaWikiTestCase::disableInterwikis';
+ }
+
+ function tearDown() {
+ global $wgHooks;
+ $wgHooks = $this->hooks;
}
/**