CRM-16701 - fixed hack in commit f1d23743.
authorJohan Vervloet <johanv@johanv.org>
Wed, 24 Jun 2015 09:15:07 +0000 (11:15 +0200)
committerJohan Vervloet <johanv@johanv.org>
Wed, 24 Jun 2015 09:15:07 +0000 (11:15 +0200)
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

index ad029554b4f5dba4a6c092dd18580ee6e6184c93..b69486a376a7a4f9b715d532451bfdd88acba26b 100644 (file)
@@ -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