From: Coleman Watts Date: Thu, 14 Jan 2016 21:04:39 +0000 (-0500) Subject: Case api test fixes/skips X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1816ac4cd8f9240fbda6d050b1adb3520db5cfff;p=civicrm-core.git Case api test fixes/skips --- diff --git a/api/v3/CaseContact.php b/api/v3/CaseContact.php index e24cabb59a..ef23871b60 100644 --- a/api/v3/CaseContact.php +++ b/api/v3/CaseContact.php @@ -42,6 +42,13 @@ function civicrm_api3_case_contact_create($params) { return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); } +/** + * @param array $fields + */ +function _civicrm_api3_case_contact_create_spec(&$fields) { + $fields['contact_id']['api.required'] = $fields['case_id']['api.required'] = 1; +} + /** * Get a CaseContact. * diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 0b40d45263..e33f06d1c2 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -445,6 +445,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'ActivityType', 'MailingEventConfirm', 'Case', + 'CaseContact', 'Contact', 'ContactType', 'MailingEventResubscribe',