From e39fff89e8b857768ee5c3a8f86ac73deded601f Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Wed, 24 Jun 2015 11:15:07 +0200 Subject: [PATCH] CRM-16701 - fixed hack in commit f1d23743. My little hack to make sure that this test updates a SavedSearch with correct form values was causing issues for testing the ReportInstance API. ---------------------------------------- * CRM-16701: Create API for saved searches https://issues.civicrm.org/jira/browse/CRM-16701 --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index ad029554b4..b69486a376 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -1144,7 +1144,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { case CRM_Utils_Type::T_TEXT: case CRM_Utils_Type::T_LONGTEXT: case CRM_Utils_Type::T_EMAIL: - if ($fieldName == 'form_values') { + if ($fieldName == 'form_values' && $entity_name == 'SavedSearch') { // This is a hack for the SavedSearch API. It expects form_values // to be a serialized array. // If you want to fix this, you should definitely read this forum -- 2.25.1