当前位置: 首页>>代码示例>>PHP>>正文


PHP SugarTestHelper::tearDown方法代码示例

本文整理汇总了PHP中SugarTestHelper::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarTestHelper::tearDown方法的具体用法?PHP SugarTestHelper::tearDown怎么用?PHP SugarTestHelper::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SugarTestHelper的用法示例。


在下文中一共展示了SugarTestHelper::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 public function tearDown()
 {
     SugarTestCallUtilities::removeAllCreatedCalls();
     SugarTestMeetingUtilities::removeAllCreatedMeetings();
     SugarTestTaskUtilities::removeAllCreatedTasks();
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug58702Test.php

示例2: tearDown

 public function tearDown()
 {
     SugarTestHelper::tearDown();
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestLeadUtilities::removeAllCreatedLeads();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug25736ExportTest.php

示例3: tearDown

 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug51679Test.php

示例4: tearDown

 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM email_addr_bean_rel WHERE bean_id = '{$this->_cleanId}' AND bean_module = '{$this->_importObject->module_dir}'");
     $GLOBALS['db']->query("DELETE FROM email_addresses WHERE email_address IN ('testmail1@test.com', 'testmail2@test.com', 'testmail3@test.com')");
     $GLOBALS['db']->query("DELETE FROM {$this->_importObject->table_name} WHERE created_by = '{$GLOBALS['current_user']->id}'");
     SugarTestHelper::tearDown();
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug25736ImportTest.php

示例5: tearDown

 public function tearDown()
 {
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug49281Test.php

示例6: tearDown

 public function tearDown()
 {
     unset($_REQUEST['dropdown_name']);
     unset($_SESSION['authenticated_user_language']);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug47010Test.php

示例7: tearDown

 public function tearDown()
 {
     $GLOBALS['db']->query("DELETE FROM folders_subscriptions WHERE assigned_user_id='{$GLOBALS['current_user']->id}'");
     $GLOBALS['db']->query("DELETE FROM folders WHERE created_by='{$GLOBALS['current_user']->id}' OR name='Bug62883Test'");
     $GLOBALS['db']->query("DELETE FROM folders_subscriptions WHERE assigned_user_id='{$GLOBALS['current_user']->id}'");
     SugarTestHelper::tearDown();
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug62883Test.php

示例8: tearDown

 public function tearDown()
 {
     $GLOBALS['db']->query('DELETE FROM opportunities WHERE id = \'' . $this->opportunities->id . '\' ');
     unset($this->opportunities);
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     SugarTestHelper::tearDown();
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:7,代码来源:Bug46276Test.php

示例9: tearDown

 public function tearDown()
 {
     SugarTestHelper::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']);
     }
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:28,代码来源:UnifiedSearchAdvancedTest.php

示例10: tearDown

 public function tearDown()
 {
     if (!empty($this->id)) {
         $job = new SchedulersJob();
         $job->mark_deleted($this->id);
     }
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:8,代码来源:Bug56573Test.php

示例11: tearDown

 public function tearDown()
 {
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     parent::tearDown();
     parent::_tearDownTestUser();
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:8,代码来源:Bug38858Test.php

示例12: tearDown

 public function tearDown()
 {
     $_POST = array();
     $this->bean->db->query("DELETE FROM meetings WHERE id = '" . $this->bean->id . "'");
     $this->bean->db->query("DELETE FROM {$this->bean->rel_users_table} WHERE meeting_id = '" . $this->bean->id . "'");
     parent::tearDown();
     SugarTestHelper::tearDown();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:8,代码来源:Bug57299Test.php

示例13: tearDown

 public function tearDown()
 {
     $this->relateField->delete($this->df);
     $this->rc->repairAndClearAll(array("rebuildExtensions", "clearVardefs"), array("Contact"), false, false);
     SugarTestAccountUtilities::removeAllCreatedAccounts();
     SugarTestContactUtilities::removeAllCreatedContacts();
     SugarTestHelper::tearDown();
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:8,代码来源:Bug52173Test.php

示例14: tearDown

 /**
  * 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();
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:12,代码来源:Bug56652Test.php

示例15: tearDown

 public function tearDown()
 {
     foreach ($this->_createdBeans as $bean) {
         $bean->retrieve($bean->id);
         $bean->mark_deleted($bean->id);
     }
     SugarTestHelper::tearDown();
 }
开发者ID:newLoki,项目名称:sugarcrm_dev,代码行数:8,代码来源:Bug49505Test.php


注:本文中的SugarTestHelper::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。