Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public function tearDown()
 {
     parent::tearDown();
     CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
 }
Exemplo n.º 3
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  *
  * This method is called after a test is executed.
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->quickCleanup(array('civicrm_case_type', 'civicrm_uf_match'));
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $this->_params = array('case_type' => $this->caseType, 'subject' => 'Test case', 'contact_id' => 17);
 }
Exemplo n.º 5
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  */
 function tearDown()
 {
     parent::tearDown();
     $this->quickCleanup(array('civicrm_case_type'));
 }