本文整理汇总了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);
}
示例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);
}
示例3: tearDown
public function tearDown()
{
parent::tearDown();
if ($this->file) {
unlink($this->file);
}
}
示例4: setUp
public function setUp()
{
parent::setUp();
$this->quickCleanup(array('civicrm_contact', 'civicrm_activity'));
$this->callbackLog = array();
$this->cids = array();
}
示例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);
}
示例6: setUp
public function setUp()
{
parent::setUp();
$this->_contactId = $this->individualCreate();
$event = $this->eventCreate();
$this->_eventId = $event['id'];
}
示例7: setUp
function setUp()
{
parent::setUp();
$this->_individualId = $this->individualCreate();
$this->_pledgeID = $this->pledgeCreate($this->_individualId);
$this->_contributionID = $this->contributionCreate($this->_individualId);
}
示例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);
}
示例9: setUp
/**
* Set up for tests.
*/
public function setUp()
{
parent::setUp();
$this->useTransaction(TRUE);
$this->_apiversion = 3;
$this->_contactID = $this->organizationCreate();
}
示例10: tearDown
function tearDown()
{
if ($this->file) {
unlink($this->file);
}
parent::tearDown();
}
示例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);
}
示例12: setUp
public function setUp()
{
parent::setUp();
$this->loadAllFixtures();
CRM_Core_BAO_ConfigSetting::enableComponent('CiviCase');
CRM_Core_BAO_ConfigSetting::enableComponent('CiviCampaign');
}
示例13: tearDown
function tearDown()
{
$this->quickCleanup(array('civicrm_job', 'civicrm_action_log', 'civicrm_action_schedule'));
$this->quickCleanUpFinancialEntities();
CRM_Utils_Hook::singleton()->reset();
parent::tearDown();
}
示例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));
}
示例15: setUp
/**
* Setup function.
*/
public function setUp()
{
parent::setUp();
$this->_apiversion = 3;
$this->_individualId = $this->individualCreate();
CRM_Core_Config::singleton()->userPermissionClass->permissions = array();
}