public function tearDown() { parent::tearDown(); i18n::set_locale($this->originalLocale); Config::inst()->remove('SilverStripe\\Forms\\TimeField', 'default_config'); Config::inst()->update('SilverStripe\\Forms\\TimeField', 'default_config', $this->origTimeConfig); }
public function tearDown() { while ($this->nestingLevel > 0) { $this->nestingLevel--; Config::unnest(); } 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(); }
public function tearDown() { foreach ($_GET as $param => $value) { if (stripos($param, 'parameterconfirmationtokentest_') === 0) { unset($_GET[$param]); } } $_SERVER['HTTP_HOST'] = $this->oldHost; parent::tearDown(); }
public function tearDown() { if ($this->rootDir) { Filesystem::removeFolder($this->rootDir); $this->rootDir = null; } if ($this->originalServer) { $_SERVER = $this->originalServer; $this->originalServer = null; } parent::tearDown(); }
public function tearDown() { parent::tearDown(); $user = getTempFolderUsername(); $base = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'silverstripe-cache-php' . preg_replace('/[^\\w-\\.+]+/', '-', PHP_VERSION); foreach (array('C--inetpub-wwwroot-silverstripe-test-project', '-Users-joebloggs-Sites-silverstripe-test-project', '-cache-var-www-silverstripe-test-project') as $dir) { $path = $base . $dir; if (file_exists($path)) { rmdir($path . DIRECTORY_SEPARATOR . $user); rmdir($path); } } }
public function tearDown() { // TODO Remove director rule, currently API doesnt allow this $_GET = $this->originalGet; $_SESSION = $this->originalSession; // Reinstate the original REQUEST_URI after it was modified by some tests $_SERVER['REQUEST_URI'] = self::$originalRequestURI; if ($this->originalProtocolHeaders) { foreach ($this->originalProtocolHeaders as $header => $value) { $_SERVER[$header] = $value; } } parent::tearDown(); }
public function tearDown() { Security::setDefaultAdmin($this->defaultUsername, $this->defaultPassword); Permission::flush_permission_cache(); parent::tearDown(); }
public function tearDown() { date_default_timezone_set($this->originalTZ); parent::tearDown(); }
public function tearDown() { parent::tearDown(); ClassLoader::instance()->popManifest(); }
public function tearDown() { ShortcodeParser::set_active('default'); parent::tearDown(); }
public function tearDown() { GDBackend::flush(); parent::tearDown(); }
public function tearDown() { ShortcodeParser::get('test')->unregister('test_shortcode'); parent::tearDown(); }
public function tearDown() { Deprecation::restore_settings(self::$originalVersionInfo); parent::tearDown(); }
/** * FulltextSearchable::enable() leaves behind remains that don't get cleaned up * properly at the end of the test. This becomes apparent when a later test tries to * ALTER TABLE File and add fulltext indexes with the InnoDB table type. */ public function tearDown() { parent::tearDown(); File::remove_extension('SilverStripe\\ORM\\Search\\FulltextSearchable'); Config::inst()->update('SilverStripe\\Assets\\File', 'create_table_options', array(MySQLSchemaManager::ID => 'ENGINE=InnoDB')); }
public function tearDown() { Security::setDefaultAdmin($this->defaultUsername, $this->defaultPassword); parent::tearDown(); }
public function tearDown() { parent::tearDown(); Config::inst()->update('SilverStripe\\Control\\Director', 'alternate_base_url', null); $_SERVER['HTTP_HOST'] = self::$original_host; }
public function tearDown() { //restore the cookie_backend Injector::unnest(); parent::tearDown(); }
public function tearDown() { parent::tearDown(); Config::set_instance($this->config); PasswordEncryptor_Blowfish::set_cost(10); }
public function tearDown() { Deprecation::restore_settings($this->oldDeprecation); parent::tearDown(); }
public function tearDown() { DataObject::reset(); parent::tearDown(); }
public function tearDown() { SecurityToken::enable(); parent::tearDown(); unset($this->mainSession); }
public function tearDown() { AssetStoreTest_SpyStore::reset(); parent::tearDown(); }
public function tearDown() { $_SERVER = $this->oldServer; AssetStoreTest_SpyStore::reset(); parent::tearDown(); }