コード例 #1
0
ファイル: Bug56652Test.php プロジェクト: delkyd/sugarcrm_dev
 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     SugarTestHelper::tearDown();
 }
コード例 #2
0
ファイル: Bug58863Test.php プロジェクト: thsonvt/sugarcrm_dev
 public function tearDown()
 {
     SugarTestHelper::tearDown();
     SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
     SugarTestEmailUtilities::removeAllCreatedEmails();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     $GLOBALS['app'] = $this->application;
 }
コード例 #3
0
 private function _createAccount($time)
 {
     if (self::$_createdAccount === null) {
         $name = 'SugarOpportunityAccount';
         $account = new Account();
         $account->name = $name . $time;
         $account->email1 = 'account@' . $time . 'sugar.com';
         $account->save();
         $GLOBALS['db']->commit();
         self::$_createdAccount = $account;
     }
     return self::$_createdAccount;
 }
コード例 #4
0
ファイル: Bug51182Test.php プロジェクト: sunmo/snowlotus
 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM saved_reports WHERE id = '{$this->_report->saved_report->id}'");
     SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
     SugarTestHelper::tearDown();
 }
コード例 #5
0
ファイル: Bug55520Test.php プロジェクト: delkyd/sugarcrm_dev
 protected function tearDown()
 {
     $this->currentUser->setPreference(self::DEFAULT_EXPORT_CHARSET_PREF_NAME, $this->defaultExportCharset);
     SugarTestHelper::tearDown();
     SugarTestOpportunityUtilities::removeAllCreatedOpportunities();
 }