Ejemplo n.º 1
0
 public function tearDownOnce()
 {
     parent::tearDownOnce();
     Fluent::set_persist_locale(null);
     self::kill_temp_db();
     self::create_temp_db();
     $this->resetDBSchema(true);
     Config::inst()->update('Cookie', 'report_errors', false);
 }
 /**
  * After executing the message queue tests, restore the original queue interfaces.
  * @return void
  */
 function tearDownOnce()
 {
     // Remove any queue definitions that are set up by tests. Currently only 'default' is used.
     MessageQueue::remove_interface("default");
     // Restore each interface.
     foreach (self::$saved_interfaces as $name => $def) {
         MessageQueue::add_interface($name, $def);
     }
     parent::tearDownOnce();
 }
 public function tearDownOnce()
 {
     DataObject::remove_extension('SiteTree', 'SolrIndexable');
     parent::tearDownOnce();
 }
 public function tearDownOnce()
 {
     parent::tearDownOnce();
     // Reset the API name in case there are user tests relying on it
     HMACRestfulAuthenticator::setApiName($this->oldApiName);
 }
 /**
  * Remove the temp copies of the templates we created.
  * @return void
  */
 function tearDownOnce()
 {
     parent::tearDownOnce();
     $this->delete_directory(Director::baseFolder() . "/assets/dynamic_templates/tmp__TemplateNoManifest");
     $this->delete_directory(Director::baseFolder() . "/assets/dynamic_templates/tmp__TemplateWithManifest");
 }
 public function tearDownOnce()
 {
     Injector::unnest();
     parent::tearDownOnce();
 }
 /**
  * Tear down the test when we're done
  * 
  * @return void
  * @author Andrew Lowther <*****@*****.**>
  */
 public function tearDownOnce()
 {
     Config::inst()->update('Director', 'environment_type', $this->orig_env_type);
     parent::tearDownOnce();
 }
 /**
  * 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 tearDownOnce()
 {
     parent::tearDownOnce();
     Config::inst()->update('File', 'create_table_options', array('MySQLDatabase' => 'ENGINE=InnoDB'));
     File::remove_extension('FulltextSearchable');
 }
 public function tearDownOnce()
 {
     parent::tearDownOnce();
     Config::unnest();
 }
Ejemplo n.º 10
0
 public function tearDownOnce()
 {
     parent::tearDownOnce();
     Fluent::set_persist_locale(null);
 }