Exemple #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();
 }
 /**
  * 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);
 }
Exemple #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();
 }
Exemple #4
0
 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     parent::_tearDownTestUser();
     SugarTestHelper::tearDown();
 }
 /**
  * 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);
 }
 /**
  * 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();
 }
Exemple #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();
 }
Exemple #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']);
 }
 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();
 }
 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);
     }
 }
 /**
  * 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();
 }
Exemple #12
0
 public function tearDown()
 {
     parent::tearDown();
 }
Exemple #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']);
 }
Exemple #14
0
 public function tearDown()
 {
     SugarTestLeadUtilities::removeAllCreatedLeads();
     parent::tearDown();
 }
Exemple #15
0
 public function tearDown()
 {
     parent::tearDown();
     $GLOBALS['db']->query(sprintf("DELETE FROM prospects WHERE id = '%d'", $this->contact->id));
     SugarTestContactUtilities::removeAllCreatedContacts();
 }
Exemple #16
0
 public function tearDown()
 {
     parent::tearDown();
     $GLOBALS['db']->query("DELETE FROM prospects WHERE id = '{$this->contact->id}'");
 }
 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();
 }
Exemple #18
0
 public function tearDown()
 {
     SugarTestMeetingUtilities::removeAllCreatedMeetings();
     SugarTestMeetingUtilities::removeMeetingUsers();
     parent::tearDown();
 }
Exemple #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();
 }