Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 3
0
 public function tearDown()
 {
     $this->contact->field_defs = $this->defs;
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     SugarTestContactUtilities::removeAllCreatedContacts();
 }
Ejemplo n.º 4
0
 public function tearDown()
 {
     // Delete created campaings
     SugarTestCampaignUtilities::removeAllCreatedCampaigns();
     // Delete users
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
 }
Ejemplo n.º 5
0
 public function tearDown()
 {
     unset($_REQUEST['dropdown_name']);
     unset($_SESSION['authenticated_user_language']);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
Ejemplo n.º 8
0
 public function tearDown()
 {
     unset($this->_lv);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     unset($GLOBALS['app_strings']);
 }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 11
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     $sql = "DELETE FROM accounts where id = '{$this->_account->id}'";
     $GLOBALS['db']->query($sql);
 }
Ejemplo n.º 12
0
 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);
 }
Ejemplo n.º 13
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestHelper::tearDown();
 }
Ejemplo n.º 14
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($this->normalUser);
     unset($this->groupUser);
     unset($this->portalUser);
 }
Ejemplo n.º 15
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     unset($_REQUEST['searchDateFrom']);
     unset($_REQUEST['searchDateTo']);
 }
Ejemplo n.º 16
0
 public function tearDown()
 {
     unset($GLOBALS['current_user']);
     unset($GLOBALS['beanList']);
     unset($GLOBALS['beanFiles']);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
 }
Ejemplo n.º 17
0
 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']);
     }
 }
Ejemplo n.º 19
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($this->mbvardef);
     unset($this->smarty);
     unset($GLOBALS['current_user']);
 }
Ejemplo n.º 20
0
 public function tearDown()
 {
     $GLOBALS['db']->query('DELETE FROM opportunities WHERE id = \'' . $this->opportunities->id . '\' ');
     unset($this->opportunities);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
Ejemplo n.º 21
0
 public function tearDown()
 {
     $sql = "DELETE FROM MEETINGS WHERE id = '{$this->_meetingId}'";
     $GLOBALS['db']->query($sql);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
 }
Ejemplo n.º 22
0
 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);
 }
Ejemplo n.º 23
0
 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);
 }
Ejemplo n.º 24
0
 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();
 }
Ejemplo n.º 27
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestLeadUtilities::removeAllCreatedLeads();
     SugarTestLeadUtilities::removeCreatedLeadsEmailAddresses();
     unset($this->form);
     unset($this->lead1);
 }
Ejemplo n.º 28
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestContactUtilities::removeCreatedContactsEmailAddresses();
     unset($this->form);
     unset($this->contact1);
 }
Ejemplo n.º 29
0
 /**
  * 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']);
 }
Ejemplo n.º 30
0
 public function tearDown()
 {
     unset($this->array);
     unset($this->form);
     unset($this->seed);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
 }