// Update Case.
$params = array('id' => $id);
- $params['subject'] = $case['subject'] = $case['case_subject'] = 'Something Else';
+ $params['subject'] = $case['subject'] = 'Something Else';
$this->callAPISuccess('case', 'create', $params);
// Verify that updated case is exactly equal to the original with new subject.
- $result = $this->callAPISuccess('case', 'getsingle', array('case_id' => $id));
+ $result = $this->callAPISuccessGetSingle('Case', array('case_id' => $id));
$this->assertAPIArrayComparison($result, $case);
}
$id = $result['id'];
// Store result for later
- $case = $this->callAPISuccess('case', 'getsingle', array('id' => $id, 'return' => array('activities', 'contacts')));
+ $case = $this->callAPISuccessGetSingle('case', array('id' => $id, 'return' => array('activities', 'contacts')));
// Fetch case based on client contact id
$result = $this->callAPISuccess('case', 'get', array(
$id = $result['id'];
// Store result for later
- $case = $this->callAPISuccess('case', 'getsingle', array('id' => $id, 'return' => 'subject'));
+ $case = $this->callAPISuccessGetSingle('Case', array('id' => $id, 'return' => 'subject'));
// Fetch case based on client contact id
$result = $this->callAPISuccess('case', 'get', array(
$id = $result['id'];
// Store result for later
- $case = $this->callAPISuccess('case', 'getsingle', array('id' => $id, 'return' => 'contact_id'));
+ $case = $this->callAPISuccessGetSingle('Case', array('id' => $id, 'return' => 'contact_id'));
$result = $this->callAPISuccess('case', 'get', array('limit' => 0, 'return' => array('contact_id')));
$this->assertAPIArrayComparison($result['values'][$id], $case);