Пример #1
0
 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM contacts WHERE id= '{$this->c->id}'");
     $GLOBALS['db']->query("DELETE FROM contacts WHERE id= '{$this->_resultId}'");
     unset($this->c);
     parent::tearDown();
 }
Пример #2
0
 /**
  * Remove anything that was used during this test
  *
  */
 public function tearDown()
 {
     parent::tearDown();
     global $soap_version_test_accountId, $soap_version_test_opportunityId, $soap_version_test_contactId;
     unset($soap_version_test_accountId);
     unset($soap_version_test_opportunityId);
     unset($soap_version_test_contactId);
 }
Пример #3
0
 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM accounts WHERE name like 'UNIT TEST%' ");
     $GLOBALS['db']->query("DELETE FROM opportunities WHERE name like 'UNIT TEST%' ");
     $GLOBALS['db']->query("DELETE FROM contacts WHERE first_name like 'UNIT TEST%' ");
     unset($GLOBALS['reload_vardefs']);
     parent::tearDown();
 }
Пример #4
0
 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     parent::_tearDownTestUser();
     SugarTestHelper::tearDown();
 }
Пример #5
0
 /**
  * Remove anything that was used during this test
  *
  */
 public function tearDown()
 {
     parent::tearDown();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     global $soap_version_test_accountId, $soap_version_test_opportunityId, $soap_version_test_contactId;
     unset($soap_version_test_accountId);
     unset($soap_version_test_opportunityId);
     unset($soap_version_test_contactId);
 }
Пример #6
0
 /**
  * Remove anything that was used during this test
  *
  */
 public function tearDown()
 {
     SugarTestContactUtilities::removeCreatedContactsUsersRelationships();
     $this->_contact = null;
     SugarTestMeetingUtilities::removeAllCreatedMeetings();
     SugarTestMeetingUtilities::removeMeetingContacts();
     $this->_meeting = null;
     parent::tearDown();
 }
Пример #7
0
 public function tearDown()
 {
     if (!empty($this->email_id)) {
         $GLOBALS['db']->query("DELETE FROM emails WHERE id='{$this->email_id}'");
         $GLOBALS['db']->query("DELETE FROM emails_beans WHERE email_id='{$this->email_id}'");
         $GLOBALS['db']->query("DELETE FROM emails_text WHERE email_id='{$this->email_id}'");
         $GLOBALS['db']->query("DELETE FROM emails_email_addr_rel WHERE email_id='{$this->email_id}'");
     }
     parent::tearDown();
 }
Пример #8
0
 /**
  * Remove anything that was used during this test
  *
  */
 public function tearDown()
 {
     parent::tearDown();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestContactUtilities::removeCreatedContactsUsersRelationships();
     $this->_contact = null;
     SugarTestMeetingUtilities::removeMeetingContacts();
     unset($GLOBALS['beanList']);
     unset($GLOBALS['beanFiles']);
 }
Пример #9
0
 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     if (!empty($this->email_id)) {
         $GLOBALS['db']->query("DELETE FROM emails WHERE id='{$this->email_id}'");
         $GLOBALS['db']->query("DELETE FROM emails_beans WHERE email_id='{$this->email_id}'");
         $GLOBALS['db']->query("DELETE FROM emails_text WHERE email_id='{$this->email_id}'");
         $GLOBALS['db']->query("DELETE FROM emails_email_addr_rel WHERE email_id='{$this->email_id}'");
     }
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     parent::tearDown();
 }
Пример #10
0
 public function tearDown()
 {
     //$this->_contact->mark_deleted($this->_contact->id);
     parent::tearDown();
     $administration = new Administration();
     $administration->retrieveSettings();
     if ($this->_opt === null) {
         if (isset($administration->settings['portal_on'])) {
             $administration->saveSetting('portal', 'on', 0);
         }
     } else {
         $administration->saveSetting('portal', 'on', $this->_opt);
     }
 }
Пример #11
0
 /**
  * Remove anything that was used during this test
  *
  */
 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM contacts WHERE id= '{$this->cont1->id}'");
     $GLOBALS['db']->query("DELETE FROM contacts WHERE id= '{$this->cont2->id}'");
     $GLOBALS['db']->query("DELETE FROM accounts_contacts WHERE contact_id= '{$this->cont1->id}'");
     $GLOBALS['db']->query("DELETE FROM accounts_contacts WHERE contact_id= '{$this->cont2->id}'");
     $GLOBALS['db']->query("DELETE FROM accounts WHERE id= '{$this->accnt1->id}'");
     $GLOBALS['db']->query("DELETE FROM accounts WHERE id= '{$this->accnt2->id}'");
     unset($this->accnt1);
     unset($this->accnt2);
     unset($this->cont1);
     unset($this->cont2);
     parent::tearDown();
 }
Пример #12
0
 public function tearDown()
 {
     parent::tearDown();
 }
Пример #13
0
 public function tearDown()
 {
     $this->df->deleteField($this->field);
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     parent::tearDown();
     global $soap_version_test_accountId, $soap_version_test_opportunityId, $soap_version_test_contactId;
     unset($soap_version_test_accountId);
     unset($soap_version_test_opportunityId);
     unset($soap_version_test_contactId);
     unset($GLOBALS['beanFiles']);
     unset($GLOBALS['beanList']);
 }
Пример #14
0
 public function tearDown()
 {
     SugarTestLeadUtilities::removeAllCreatedLeads();
     parent::tearDown();
 }
Пример #15
0
 public function tearDown()
 {
     parent::tearDown();
     $GLOBALS['db']->query(sprintf("DELETE FROM prospects WHERE id = '%d'", $this->contact->id));
     SugarTestContactUtilities::removeAllCreatedContacts();
 }
Пример #16
0
 public function tearDown()
 {
     parent::tearDown();
     $GLOBALS['db']->query("DELETE FROM prospects WHERE id = '{$this->contact->id}'");
 }
Пример #17
0
 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM accounts WHERE name like 'UNIT TEST%' ");
     $GLOBALS['db']->query("DELETE FROM contacts WHERE first_name like 'UNIT TEST%' ");
     parent::tearDown();
 }
Пример #18
0
 public function tearDown()
 {
     SugarTestMeetingUtilities::removeAllCreatedMeetings();
     SugarTestMeetingUtilities::removeMeetingUsers();
     parent::tearDown();
 }
Пример #19
0
 public function tearDown()
 {
     $this->df->deleteField($this->field);
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     parent::tearDown();
     global $soap_version_test_accountId, $soap_version_test_opportunityId, $soap_version_test_contactId;
     unset($soap_version_test_accountId);
     unset($soap_version_test_opportunityId);
     unset($soap_version_test_contactId);
     SugarTestHelper::tearDown();
 }
 public function tearDown()
 {
     global $current_user;
     SugarTestContactUtilities::removeAllCreatedContacts();
     $GLOBALS['db']->query("DELETE FROM contacts WHERE id in ('{$this->_resultId}', '{$this->_resultId2}')");
     $GLOBALS['db']->query("DELETE FROM contacts_users WHERE user_id = '{$current_user->id}'");
     $GLOBALS['db']->commit();
     unset($this->c);
     unset($this->c2);
     parent::tearDown();
 }