protected function tearDown()
 {
     global $wgHooks;
     $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
     $this->mOldGetPreferencesHooks = false;
     parent::tearDown();
 }
 function tearDown()
 {
     global $wgMemc;
     unset($wgMemc);
     unset($this->lc);
     unset($this->lang);
     parent::tearDown();
 }
 public function tearDown()
 {
     global $wgHooks;
     if ($this->mOldGetPreferencesHooks !== false) {
         $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
         $this->mOldGetPreferencesHooks = false;
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     global $wgContLang;
     parent::tearDown();
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
 }
 protected function tearDown()
 {
     // Avoid leaking session over tests
     if (session_id() != '') {
         global $wgUser;
         $wgUser->logout();
         session_destroy();
     }
     parent::tearDown();
 }
Beispiel #6
0
 protected function tearDown()
 {
     global $wgExtraNamespaces, $wgNamespaceContentModels, $wgContentHandlers, $wgContLang;
     parent::tearDown();
     unset($wgExtraNamespaces[12312]);
     unset($wgExtraNamespaces[12313]);
     unset($wgNamespaceContentModels[12312]);
     unset($wgContentHandlers['DUMMY']);
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
 }
 protected function tearDown()
 {
     foreach ($this->pages_to_delete as $p) {
         /* @var $p WikiPage */
         try {
             if ($p->exists()) {
                 $p->doDeleteArticle("testing done.");
             }
         } catch (MWException $ex) {
             // fail silently
         }
     }
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     global $wgLang;
     Language::getLocalisationCache()->recache($wgLang->getCode());
 }
 public function tearDown()
 {
     parent::tearDown();
     TestingAccessWrapper::newFromClass('Hooks')->handlers = $this->originalHandlers;
     SpecialPageFactory::resetList();
 }
Beispiel #10
0
 protected function tearDown()
 {
     // Avoid leaking session over tests
     MediaWiki\Session\SessionManager::getGlobalSession()->clear();
     parent::tearDown();
 }
 /**
  * Anything cleanup you need to do should go here.
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
Beispiel #12
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->skin = null;
 }
 protected function tearDown()
 {
     if ($this->luaDataProvider) {
         $this->luaDataProvider->destroy();
         $this->luaDataProvider = null;
     }
     if ($this->engine) {
         $this->engine->destroy();
         $this->engine = null;
     }
     parent::tearDown();
 }
Beispiel #14
0
 /**
  * Anything cleanup you need to do should go here.
  */
 function tearDown()
 {
     parent::tearDown();
 }
 protected function tearDown()
 {
     unset($this->search);
     parent::tearDown();
 }
 protected function tearDown()
 {
     unset($this->lc);
     unset($this->lang);
     parent::tearDown();
 }
 protected function tearDown()
 {
     MWTidy::destroySingleton();
     parent::tearDown();
 }
Beispiel #18
0
 public function tearDown()
 {
     global $wgLocalTZoffset;
     $wgLocalTZoffset = self::$offset;
     parent::tearDown();
 }