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(); }
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(); }
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(); }
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(); }
/** * 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(); }
public function tearDown() { global $wgLocalTZoffset; $wgLocalTZoffset = self::$offset; parent::tearDown(); }