public function tearDown() { AssetStoreTest_SpyStore::reset(); if ($this->oldReadingMode) { Versioned::set_reading_mode($this->oldReadingMode); } parent::tearDown(); }
public function tearDown() { // Restore selected authenticator // MemberAuthenticator might not actually be present if (!in_array('SilverStripe\\Security\\MemberAuthenticator', $this->priorAuthenticators)) { Authenticator::unregister('SilverStripe\\Security\\MemberAuthenticator'); } foreach ($this->priorAuthenticators as $authenticator) { Authenticator::register($authenticator); } Authenticator::set_default_authenticator($this->priorDefaultAuthenticator); // Restore unique identifier field Member::config()->unique_identifier_field = $this->priorUniqueIdentifierField; Security::config()->remember_username = $this->priorRememberUsername; parent::tearDown(); }
public function tearDown() { parent::tearDown(); Requirements::set_combined_files_enabled($this->backupCombined); }
public function tearDown() { AssetStoreTest_SpyStore::reset(); parent::tearDown(); }
public function tearDown() { Member::config()->unique_identifier_field = $this->orig['Member_unique_identifier_field']; parent::tearDown(); }
public function tearDown() { Deprecation::restore_settings($this->depSettings); parent::tearDown(); }