Exemple #1
0
 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     SugarTestHelper::tearDown();
 }
Exemple #2
0
 public function tearDown()
 {
     unset($GLOBALS['module']);
     unset($GLOBALS['action']);
     unset($GLOBALS['mod_strings']);
     unset($GLOBALS['current_user']);
     parent::tearDown();
 }
Exemple #3
0
 public function tearDown()
 {
     $_REQUEST = array();
     sugar_cache_clear('mod_strings.en_us');
     if (file_exists('custom/modules/' . $this->module . '/language/en_us.lang.php')) {
         unlink('custom/modules/' . $this->module . '/language/en_us.lang.php');
     }
     if (file_exists('custom/modules/' . $this->add_module . '/language/en_us.lang.php')) {
         unlink('custom/modules/' . $this->add_module . '/language/en_us.lang.php');
     }
     SugarTestHelper::tearDown();
     parent::tearDown();
 }
Exemple #4
0
 public function tearDown()
 {
     unset($GLOBALS['module']);
     unset($GLOBALS['action']);
     unset($GLOBALS['mod_strings']);
     unset($GLOBALS['current_user']);
     unset($_REQUEST);
     $GLOBALS['db']->query("DELETE FROM notes WHERE id IN ('" . $this->note1->id . "','" . $this->note2->id . "')");
     // Just in case there is a custom table here
     if ($GLOBALS['db']->tableExists('notes_cstm')) {
         $GLOBALS['db']->query("DELETE FROM notes_cstm WHERE id_c IN ('" . $this->note1->id . "','" . $this->note2->id . "')");
     }
     parent::tearDown();
 }
Exemple #5
0
 public function tearDown()
 {
     foreach ($this->fileNames as $fileNames) {
         @unlink($fileNames);
     }
     parent::tearDown();
 }
Exemple #6
0
 protected function tearDown()
 {
     SugarTestHelper::tearDown();
     parent::tearDown();
 }
Exemple #7
0
 public function tearDown()
 {
     SugarTestHelper::tearDown();
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->deleteFields();
     SugarTestHelper::tearDown();
     parent::tearDown();
 }
Exemple #9
0
 public function tearDown()
 {
     SugarTestProspectUtilities::removeAllCreatedProspects();
     parent::tearDown();
 }
 public function tearDown()
 {
     ParserLabel::removeLabel($GLOBALS['current_language'], $this->idLabelName, $GLOBALS['mod_strings'][$this->idLabelName], $this->module);
     SugarTestHelper::tearDown();
     parent::tearDown();
 }