* @return array
*
*/
-function civicrm_api3($entity, $action, $params){
+function civicrm_api3($entity, $action, $params) {
$params['version'] = 3;
$result = civicrm_api($entity, $action, $params);
if($result['is_error']){
throw new CiviCRM_API3_Exception($result['error_message'], CRM_Utils_Array::value('error_code', $result, 'undefined'), $result);
}
+ return $result;
}
/**
catch (CRM_Exception $e){
$this->fail("This should have been a success test");
}
+ $this->assertTrue(is_array($result));
$this->assertAPISuccess($result);
}