public function tearDown() { SugarTestCallUtilities::removeAllCreatedCalls(); SugarTestMeetingUtilities::removeAllCreatedMeetings(); SugarTestTaskUtilities::removeAllCreatedTasks(); SugarTestHelper::tearDown(); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestMeetingUtilities::removeMeetingUsers(); SugarTestMeetingUtilities::removeAllCreatedMeetings(); SugarTestTaskUtilities::removeAllCreatedTasks(); SugarTestProjectUtilities::removeAllCreatedProjects(); SugarTestProjectTaskUtilities::removeAllCreatedProjectTasks(); unset($this->timedate); unset($this->project); unset($GLOBALS['current_user']); }
public function tearDown() { SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); unset($GLOBALS['current_user']); if (file_exists($GLOBALS['sugar_config']['cache_dir'] . 'modules/unified_search_modules.php.bak')) { copy($GLOBALS['sugar_config']['cache_dir'] . 'modules/unified_search_modules.php.bak', $GLOBALS['sugar_config']['cache_dir'] . 'modules/unified_search_modules.php'); unlink($GLOBALS['sugar_config']['cache_dir'] . 'modules/unified_search_modules.php.bak'); } if (file_exists('custom/modules/unified_search_modules_display.php.bak')) { 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'); } SugarTestTaskUtilities::removeAllCreatedTasks(); SugarTestAccountUtilities::removeAllCreatedAccounts(); }
public function tearDown() { global $current_user; $GLOBALS['db']->query("DELETE FROM meetings_users WHERE user_id = '{$current_user->id}'"); $GLOBALS['db']->query("DELETE FROM calls_users WHERE user_id = '{$current_user->id}'"); $GLOBALS['db']->query("DELETE FROM contacts_users WHERE user_id = '{$current_user->id}'"); SugarTestUserUtilities::removeAllCreatedAnonymousUsers(); SugarTestMeetingUtilities::removeAllCreatedMeetings(); SugarTestCallUtilities::removeAllCreatedCalls(); SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestTaskUtilities::removeAllCreatedTasks(); unset($GLOBALS['current_user']); unset($GLOBALS['beanFiles']); unset($GLOBALS['beanList']); }
public function tearDown() { SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestTaskUtilities::removeAllCreatedTasks(); unset($GLOBALS['current_user']); }
public function tearDown() { SugarTestContactUtilities::removeAllCreatedContacts(); SugarTestTaskUtilities::removeAllCreatedTasks(); SugarTestHelper::tearDown(); }