From 79da2aaccce219d5aa3b48945bf67b9d53f8e758 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 22 Apr 2019 08:22:13 -0400 Subject: [PATCH] Add UFField to syntaxConformanceTest --- .../phpunit/api/v3/SyntaxConformanceTest.php | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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'], -- 2.25.1