public function tearDown() { SugarTestCallUtilities::removeAllCreatedCalls(); SugarTestMeetingUtilities::removeAllCreatedMeetings(); SugarTestTaskUtilities::removeAllCreatedTasks(); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestHelper::tearDown(); SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestLeadUtilities::removeAllCreatedLeads(); }
public function tearDown() { SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { $GLOBALS['db']->query("DELETE FROM email_addr_bean_rel WHERE bean_id = '{$this->_cleanId}' AND bean_module = '{$this->_importObject->module_dir}'"); $GLOBALS['db']->query("DELETE FROM email_addresses WHERE email_address IN ('*****@*****.**', '*****@*****.**', '*****@*****.**')"); $GLOBALS['db']->query("DELETE FROM {$this->_importObject->table_name} WHERE created_by = '{$GLOBALS['current_user']->id}'"); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestHelper::tearDown(); }
public function tearDown() { unset($_REQUEST['dropdown_name']); unset($_SESSION['authenticated_user_language']); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { $GLOBALS['db']->query("DELETE FROM folders_subscriptions WHERE assigned_user_id='{$GLOBALS['current_user']->id}'"); $GLOBALS['db']->query("DELETE FROM folders WHERE created_by='{$GLOBALS['current_user']->id}' OR name='Bug62883Test'"); $GLOBALS['db']->query("DELETE FROM folders_subscriptions WHERE assigned_user_id='{$GLOBALS['current_user']->id}'"); SugarTestHelper::tearDown(); }
public function tearDown() { $GLOBALS['db']->query('DELETE FROM opportunities WHERE id = \'' . $this->opportunities->id . '\' '); unset($this->opportunities); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestHelper::tearDown(); $GLOBALS['db']->query("DELETE FROM contacts WHERE id= '{$this->_contact->id}'"); unset($this->_contact); if ($this->_hasUnifiedSearchModulesConfig) { copy(sugar_cached('modules/unified_search_modules.php.bak'), sugar_cached('modules/unified_search_modules.php')); unlink(sugar_cached('modules/unified_search_modules.php.bak')); } else { unlink(sugar_cached('modules/unified_search_modules.php')); } if ($this->_hasUnifiedSearchModulesDisplay) { copy('custom/modules/unified_search_modules_display.php.bak', 'custom/modules/unified_search_modules_display.php'); unlink('custom/modules/unified_search_modules_display.php.bak'); } else { unlink('custom/modules/unified_search_modules_display.php'); } SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); if (isset($_REQUEST['module'])) { unset($_REQUEST['module']); } if (isset($_REQUEST['query_string'])) { unset($_REQUEST['query_string']); } if (isset($_REQUEST['enabled_modules'])) { unset($_REQUEST['enabled_modules']); } }
public function tearDown() { if (!empty($this->id)) { $job = new SchedulersJob(); $job->mark_deleted($this->id); } SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestContactUtilities::removeAllCreatedContacts(); parent::tearDown(); parent::_tearDownTestUser(); SugarTestHelper::tearDown(); }
public function tearDown() { $_POST = array(); $this->bean->db->query("DELETE FROM meetings WHERE id = '" . $this->bean->id . "'"); $this->bean->db->query("DELETE FROM {$this->bean->rel_users_table} WHERE meeting_id = '" . $this->bean->id . "'"); parent::tearDown(); SugarTestHelper::tearDown(); }
public function tearDown() { $this->relateField->delete($this->df); $this->rc->repairAndClearAll(array("rebuildExtensions", "clearVardefs"), array("Contact"), false, false); SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestHelper::tearDown(); }
/** * 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() { foreach ($this->_createdBeans as $bean) { $bean->retrieve($bean->id); $bean->mark_deleted($bean->id); } SugarTestHelper::tearDown(); }
public function tearDown() { $GLOBALS["db"]->query("DELETE FROM inbound_email WHERE id = '{$this->ie->id}'"); $GLOBALS["db"]->query("DELETE FROM cases WHERE name = '{$this->ie->casename}'"); SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestContactUtilities::removeCreatedContactsEmailAddresses(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestHelper::tearDown(); }
function tearDown() { //remove connector file unlink($this->custom_path . '/connectors.php'); if (!empty($this->custom_contents)) { file_put_contents($this->custom_path . '/connectors.php', $this->custom_contents); } SugarTestHelper::tearDown(); }
public function tearDown() { // Clean the Contacts created using vCard Import foreach ($this->createdContacts as $contactId) { $GLOBALS['db']->query("DELETE FROM contacts WHERE id = '{$contactId}'"); } unlink($this->filename); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestHelper::tearDown(); SugarTestOpportunityUtilities::removeAllCreatedOpportunities(); SugarTestEmailUtilities::removeAllCreatedEmails(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestAccountUtilities::removeAllCreatedAccounts(); $GLOBALS['app'] = $this->application; }
public function tearDown() { /** @var DBManager */ global $db; if ($this->case && $this->case->id) { $query = 'DELETE FROM cases where id = ' . $db->quoted($this->case->id); $db->query($query); } SugarTestHelper::tearDown(); }
protected function tearDown() { SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestContactUtilities::removeCreatedContactsEmailAddresses(); SugarTestContactUtilities::removeCreatedContactsUsersRelationships(); SugarTestMeetingUtilities::removeAllCreatedMeetings(); SugarTestMeetingUtilities::removeMeetingContacts(); SugarTestMeetingUtilities::removeMeetingUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { if ($this->accountFieldWidget) { $this->accountFieldWidget->delete($this->accountField); } if ($this->opportunityFieldWidget) { $this->opportunityFieldWidget->delete($this->opportunityField); } $repair = new RepairAndClear(); $repair->repairAndClearAll(array('rebuildExtensions', 'clearVardefs'), array($GLOBALS['beanList']['Accounts'], $GLOBALS['beanList']['Opportunities']), true, false); $_REQUEST = $_POST = array(); SugarTestHelper::tearDown(); }
public function tearDown() { $this->custField->delete($this->df); $_REQUEST['repair_silent'] = 1; $rc = new RepairAndClear(); $rc->repairAndClearAll(array("clearAll", "rebuildExtensions"), array("Accounts"), false, false); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestHelper::tearDown(); $GLOBALS['reload_vardefs'] = true; $o = new Account(); $GLOBALS['reload_vardefs'] = false; }
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(); }
public function tearDown() { foreach ($this->meetingsArr as $m) { $GLOBALS['db']->query('DELETE FROM meetings WHERE id = \'' . $m->id . '\' '); } unset($m); unset($this->meetingsArr); unset($this->searchDefs); unset($this->searchFields); unset($this->timedate); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { $mbc = new ModuleBuilderController(); $this->currencyFieldDef1['name'] = 'c1_c'; $_REQUEST = $this->currencyFieldDef1; $mbc->action_DeleteField(); $this->currencyFieldDef2['name'] = 'c2_c'; $_REQUEST = $this->currencyFieldDef2; $mbc->action_DeleteField(); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); unset($GLOBALS['beanList']); unset($GLOBALS['beanFiles']); unset($GLOBALS['app_list_strings']); $_REQUEST = array(); SugarCache::$isCacheReset = false; SugarTestHelper::tearDown(); }
public function tearDown() { $GLOBALS['db']->query("DELETE FROM saved_reports WHERE id = '{$this->_report->saved_report->id}'"); SugarTestOpportunityUtilities::removeAllCreatedOpportunities(); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestHelper::tearDown(); $_REQUEST = array(); }
public function tearDown() { SugarTestHelper::tearDown(); }
public function tearDown() { $this->df->deleteField($this->field); $relationshipAccountContact = new DeployedRelationships($this->relationAccountContact->getLhsModule()); $relationshipAccountContact->delete($this->relationAccountContact->getName()); $relationshipAccountContact->save(); $relationshipContactAccount = new DeployedRelationships($this->relationContactAccount->getLhsModule()); $relationshipContactAccount->delete($this->relationContactAccount->getName()); $relationshipContactAccount->save(); SugarRelationshipFactory::deleteCache(); $_REQUEST = array(); SugarTestHelper::tearDown(); }