public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['action']); unset($GLOBALS['module']); unset($_REQUEST['module']); }
public function tearDown() { unset($_SESSION[$GLOBALS['current_user']->user_name . '_PREFERENCES']); unset($GLOBALS['current_user']); unset($_SESSION[$this->_user->user_name . '_PREFERENCES']); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); }
public function tearDown() { $this->contact->field_defs = $this->defs; SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); SugarTestContactUtilities::removeAllCreatedContacts(); }
public function tearDown() { // Delete created campaings SugarTestCampaignUtilities::removeAllCreatedCampaigns(); // Delete users SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); }
public function tearDown() { unset($_REQUEST['dropdown_name']); unset($_SESSION['authenticated_user_language']); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { $GLOBALS['db']->query("DELETE FROM saved_search where id = '{$this->saved_search_id}'"); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); global $current_user; $current_user = $this->previousCurrentUser; }
public function tearDown() { SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { unset($this->_lv); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); unset($GLOBALS['app_strings']); }
public function tearDown() { if (!empty($this->_passwordSetting)) { $GLOBALS['sugar_config']['passwordsetting'] = $this->_passwordSetting; } SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); $GLOBALS['db']->query("DELETE FROM folders WHERE id='{$this->folder_id}'"); unset($this->ie); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); $sql = "DELETE FROM accounts where id = '{$this->_account->id}'"; $GLOBALS['db']->query($sql); }
public function tearDown() { global $sugar_config, $sugar_version, $mod_strings; if (file_exists($this->loc->invalidNameFormatUpgradeFilename)) { unlink($this->loc->invalidNameFormatUpgradeFilename); } if (file_exists($this->loc->invalidNameFormatUpgradeFilename . '.backup')) { rename($this->loc->invalidNameFormatUpgradeFilename . '.backup', $this->loc->invalidNameFormatUpgradeFilename); } unset($this->loc); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($this->user); unset($GLOBALS['current_user']); $sugar_config = $this->backupConfig; if (!rebuildConfigFile($sugar_config, $sugar_version)) { logThis('*** ERROR: could not write config.php!'); $errors[] = $mod_strings['ERR_UW_CONFIG_WRITE']; } unset($this->backupSystemLocaleNameFormat); unset($sugar_config); unset($sugar_version); unset($mod_strings); unset($app_strings); unset($app_list_strings); unset($locale); unset($_REQUEST); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); SugarTestAccountUtilities::removeAllCreatedAccounts(); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($this->normalUser); unset($this->groupUser); unset($this->portalUser); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); unset($_REQUEST['searchDateFrom']); unset($_REQUEST['searchDateTo']); }
public function tearDown() { unset($GLOBALS['current_user']); unset($GLOBALS['beanList']); unset($GLOBALS['beanFiles']); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); $GLOBALS['db']->query("DELETE FROM schedulers WHERE id = '" . $this->testScheduler->id . "'"); $GLOBALS['db']->query("DELETE FROM schedulers_times WHERE scheduler_id = '" . $this->testScheduler->id . "'"); }
public function 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() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($this->mbvardef); unset($this->smarty); unset($GLOBALS['current_user']); }
public function tearDown() { $GLOBALS['db']->query('DELETE FROM opportunities WHERE id = \'' . $this->opportunities->id . '\' '); unset($this->opportunities); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestHelper::tearDown(); }
public function tearDown() { $sql = "DELETE FROM MEETINGS WHERE id = '{$this->_meetingId}'"; $GLOBALS['db']->query($sql); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); $GLOBALS['db']->query("DELETE FROM inbound_email WHERE id= '{$this->ib->id}'"); unset($GLOBALS['mod_strings']); unset($this->ib); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); $query = "DELETE from email_addresses where email_address = '{$this->emailAddress}'"; $GLOBALS['db']->query($query); $query = "DELETE from email_addr_bean_rel where bean_id = '{$this->_user->id}'"; $GLOBALS['db']->query($query); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); unset($GLOBALS['beanFiles']); unset($GLOBALS['beanList']); unset($this->objOneToOneRelationship); }
public function testCanTearDownAllCreatedAnonymousUsers() { for ($i = 0; $i < 5; $i++) { SugarTestUserUtilities::createAnonymousUser(); } SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); $this->assertEquals($this->_before_snapshot, $this->_takeUserDBSnapshot(), 'SugarTest_UserUtilities::removeAllCreatedAnonymousUsers() should have removed the users it added'); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); unset($GLOBALS['app_list_strings']); unset($GLOBALS['beanList']); $GLOBALS['timedate'] = TimeDate::getInstance(); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestLeadUtilities::removeAllCreatedLeads(); SugarTestLeadUtilities::removeCreatedLeadsEmailAddresses(); unset($this->form); unset($this->lead1); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestContactUtilities::removeCreatedContactsEmailAddresses(); unset($this->form); unset($this->contact1); }
/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. * * Removes temporary opportunity */ public function tearDown() { if (!empty($this->opportunity)) { $this->opportunity->mark_deleted($this->opportunity->id); } SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); }
public function tearDown() { unset($this->array); unset($this->form); unset($this->seed); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); }