From: Coleman Watts Date: Mon, 22 Apr 2019 12:22:13 +0000 (-0400) Subject: Add UFField to syntaxConformanceTest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=79da2aaccce219d5aa3b48945bf67b9d53f8e758;p=civicrm-core.git Add UFField to syntaxConformanceTest --- diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 64dbdcda3f..e22e8eea0c 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -498,7 +498,6 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'Profile', 'CustomValue', 'UFJoin', - 'UFField', 'Relationship', 'RelationshipType', 'Note', @@ -736,6 +735,27 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'ignore_severity', ), ), + 'UFField' => array( + 'cant_update' => array( + // These fields get auto-adjusted by the BAO prior to saving + 'weight', + 'location_type_id', + 'phone_type_id', + 'website_type_id', + // Not a real field + 'option.autoweight', + ), + 'break_return' => array( + // These fields get auto-adjusted by the BAO prior to saving + 'weight', + 'field_type', + 'location_type_id', + 'phone_type_id', + 'website_type_id', + // Not a real field + 'option.autoweight', + ), + ), 'JobLog' => array( // For better or worse triggers override. 'break_return' => ['run_time'],