Case api test fixes/skips
authorColeman Watts <coleman@civicrm.org>
Thu, 14 Jan 2016 21:04:39 +0000 (16:04 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 14 Jan 2016 21:25:42 +0000 (16:25 -0500)
api/v3/CaseContact.php
tests/phpunit/api/v3/SyntaxConformanceTest.php

index e24cabb59a145f42a4d8d75539bbb48737e1208a..ef23871b60cd3121adfbc321c8f1cc5e2162bb5e 100644 (file)
@@ -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.
  *
index 0b40d45263fb91f8660023785714191750ca3ab6..e33f06d1c242a116ec33cc0c203161349a2a012e 100644 (file)
@@ -445,6 +445,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
       'ActivityType',
       'MailingEventConfirm',
       'Case',
+      'CaseContact',
       'Contact',
       'ContactType',
       'MailingEventResubscribe',