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


PHP CiviUnitTestCase类代码示例

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


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

示例1: setUp

 function setUp()
 {
     parent::setUp();
     $this->_groupID = $this->groupCreate();
     $this->_email = 'test@test.test';
     $this->_params = array('subject' => 'maild', 'body_text' => 'bdkfhdskfhduew', 'name' => 'mailing name', 'created_id' => 1);
 }
开发者ID:archcidburnziso,项目名称:civicrm-core,代码行数:7,代码来源:MailingTest.php

示例2: setUp

 public function setUp()
 {
     $this->_apiversion = 3;
     parent::setUp();
     $this->useTransaction(TRUE);
     $this->_params = array('name' => 'test_check', 'domain_id' => 1, 'hush_until' => '20151212', 'ignore_severity' => 4, 'check_info' => NULL);
 }
开发者ID:FundingWorks,项目名称:civicrm-core,代码行数:7,代码来源:StatusPreferenceTest.php

示例3: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if ($this->file) {
         unlink($this->file);
     }
 }
开发者ID:sdekok,项目名称:civicrm-core,代码行数:7,代码来源:ZipTest.php

示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->quickCleanup(array('civicrm_contact', 'civicrm_activity'));
     $this->callbackLog = array();
     $this->cids = array();
 }
开发者ID:konadave,项目名称:civicrm-core,代码行数:7,代码来源:TransactionTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->useTransaction(TRUE);
     $this->_entity = 'mapping';
     $this->params = array('name' => 'Mapping name', 'description' => 'Mapping description', 'mapping_type_id' => 7);
 }
开发者ID:sdekok,项目名称:civicrm-core,代码行数:7,代码来源:MappingTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->_contactId = $this->individualCreate();
     $event = $this->eventCreate();
     $this->_eventId = $event['id'];
 }
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:7,代码来源:ParticipantTest.php

示例7: setUp

 function setUp()
 {
     parent::setUp();
     $this->_individualId = $this->individualCreate();
     $this->_pledgeID = $this->pledgeCreate($this->_individualId);
     $this->_contributionID = $this->contributionCreate($this->_individualId);
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:7,代码来源:PledgePaymentTest.php

示例8: setUp

 public function setUp()
 {
     $this->_apiversion = 3;
     $this->params = array('title' => "campaign title", 'description' => "Call people, ask for money", 'created_date' => 'first sat of July 2008');
     parent::setUp();
     $this->useTransaction(TRUE);
 }
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:7,代码来源:CampaignTest.php

示例9: setUp

 /**
  * Set up for tests.
  */
 public function setUp()
 {
     parent::setUp();
     $this->useTransaction(TRUE);
     $this->_apiversion = 3;
     $this->_contactID = $this->organizationCreate();
 }
开发者ID:rollox,项目名称:civicrm-core,代码行数:10,代码来源:MembershipTypeTest.php

示例10: tearDown

 function tearDown()
 {
     if ($this->file) {
         unlink($this->file);
     }
     parent::tearDown();
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:7,代码来源:InfoTest.php

示例11: setUp

 public function setUp()
 {
     $this->_apiversion = 3;
     $this->params = array('name' => 'test status', 'label' => 'I am a test', 'class' => 'Positive', 'is_reserved' => 0, 'is_active' => 1, 'is_counted' => 1, 'visibility_id' => 1, 'weight' => 10);
     parent::setUp();
     $this->useTransaction(TRUE);
 }
开发者ID:FundingWorks,项目名称:civicrm-core,代码行数:7,代码来源:ParticipantStatusTypeTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->loadAllFixtures();
     CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase');
     CRM_Core_BAO_ConfigSetting::enableComponent('CiviCampaign');
 }
开发者ID:joshgowans,项目名称:civicrm-core,代码行数:7,代码来源:PseudoConstantTest.php

示例13: tearDown

 function tearDown()
 {
     $this->quickCleanup(array('civicrm_job', 'civicrm_action_log', 'civicrm_action_schedule'));
     $this->quickCleanUpFinancialEntities();
     CRM_Utils_Hook::singleton()->reset();
     parent::tearDown();
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:7,代码来源:JobTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->_individualId = $this->individualCreate();
     $this->_pledgeID = $this->pledgeCreate($this->_individualId);
     $this->_contributionID = $this->contributionCreate(array('contact_id' => $this->_individualId));
 }
开发者ID:konadave,项目名称:civicrm-core,代码行数:7,代码来源:PledgePaymentTest.php

示例15: setUp

 /**
  * Setup function.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_apiversion = 3;
     $this->_individualId = $this->individualCreate();
     CRM_Core_Config::singleton()->userPermissionClass->permissions = array();
 }
开发者ID:nielosz,项目名称:civicrm-core,代码行数:10,代码来源:PaymentTest.php


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