/** * 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(); }
public function tearDown() { SugarTestHelper::tearDown(); SugarTestOpportunityUtilities::removeAllCreatedOpportunities(); SugarTestEmailUtilities::removeAllCreatedEmails(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestAccountUtilities::removeAllCreatedAccounts(); $GLOBALS['app'] = $this->application; }
public function tearDown() { $GLOBALS['db']->query("DELETE FROM saved_reports WHERE id = '{$this->_report->saved_report->id}'"); SugarTestOpportunityUtilities::removeAllCreatedOpportunities(); SugarTestHelper::tearDown(); }
protected function tearDown() { $this->currentUser->setPreference(self::DEFAULT_EXPORT_CHARSET_PREF_NAME, $this->defaultExportCharset); SugarTestHelper::tearDown(); SugarTestOpportunityUtilities::removeAllCreatedOpportunities(); }