/** * 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 tearDown() { parent::tearDown(); CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); }
/** * 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')); }
public function setUp() { parent::setUp(); $this->_params = array('case_type' => $this->caseType, 'subject' => 'Test case', 'contact_id' => 17); }
/** * 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')); }