From 1816ac4cd8f9240fbda6d050b1adb3520db5cfff Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 14 Jan 2016 16:04:39 -0500 Subject: [PATCH] Case api test fixes/skips --- api/v3/CaseContact.php | 7 +++++++ tests/phpunit/api/v3/SyntaxConformanceTest.php | 1 + 2 files changed, 8 insertions(+) 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', -- 2.25.1