From 5ba7b9fdceb9115f83abb3fb0e78c64d8f09f7f6 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Tue, 23 Jun 2015 21:00:54 +0200 Subject: [PATCH] CRM-16701 - cant_update fields for SavedSearch. Most of the fields of a SavedSearch are calculated based on form_values, so I excluded them from the testCreateSingleValueAlter test in SyntaxConformanceTest. I guess that if there are still failing tests left, they are caused by CRM-16736. ---------------------------------------- * CRM-16701: Create API for saved searches https://issues.civicrm.org/jira/browse/CRM-16701 * CRM-16736: Possible NULL/'null' error in SavedSearch BAO https://issues.civicrm.org/jira/browse/CRM-16736 --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index 87bc3134ba..a85b58a5af 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -599,6 +599,15 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'weight', //won't update as there is no 1 in the same price set ), ), + 'SavedSearch' => array( + // I think the fields below are generated based on form_values. + 'cant_update' => array( + 'search_custom_id', + 'where_clause', + 'select_tables', + 'where_tables', + ) + ) ); if (empty($knownFailures[$entity]) || empty($knownFailures[$entity][$key])) { return array(); -- 2.25.1