Ejemplo n.º 1
0
 public function tearDown()
 {
     ThemeResourceLoader::set_instance($this->_oldLoader);
     i18n::set_locale($this->originalLocale);
     Config::inst()->update('Director', 'alternate_base_folder', null);
     Config::inst()->update('SSViewer', 'theme', $this->_oldTheme);
     i18n::register_translator($this->origAdapter, 'core');
     parent::tearDown();
 }
 public function tearDown()
 {
     ThemeResourceLoader::set_instance($this->_oldLoader);
     // Pop if added during testing
     if (ClassLoader::instance()->getManifest() === $this->manifest) {
         ClassLoader::instance()->popManifest();
     }
     parent::tearDown();
 }