Example #1
0
 /**
  * Test setup for every test.
  *
  * Connect to the database, truncate the tables that will be used
  * and redirect stdin to a temporary file.
  */
 public function setUp()
 {
     $this->_entity = 'case';
     parent::setUp();
     $activityTypes = $this->callAPISuccess('option_value', 'get', array('option_group_id' => 2, 'name' => 'Follow Up', 'label' => 'Follow Up', 'sequential' => 1));
     $this->followup_activity_type_value = $activityTypes['values'][0]['value'];
     $this->_params = array('case_type_id' => $this->caseTypeId, 'subject' => 'Test case', 'contact_id' => 17);
 }
 public function setUp()
 {
     parent::setUp();
     CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
 }
 public function setUp()
 {
     parent::setUp();
     $this->_params = array('case_type' => $this->caseType, 'subject' => 'Test case', 'contact_id' => 17);
 }
 public function setUp()
 {
     $this->quickCleanup(array('civicrm_case_type'));
     parent::setUp();
     $this->fixtures['Application_with_Definition'] = array('title' => 'Application with Definition', 'name' => 'Application_with_Definition', 'is_active' => 1, 'weight' => 4, 'definition' => array('activityTypes' => array(array('name' => 'First act')), 'activitySets' => array(array('name' => 'set1', 'label' => 'Label 1', 'timeline' => 1, 'activityTypes' => array(array('name' => 'Open Case', 'status' => 'Completed')))), 'caseRoles' => array(array('name' => 'First role', 'creator' => 1, 'manager' => 1))));
 }