Rewrite testHiddenSmartGroup
authorFrancesc Bassas i Bullich <francesc@babu.cat>
Fri, 14 Dec 2018 20:39:15 +0000 (21:39 +0100)
committerFrancesc Bassas i Bullich <francesc@babu.cat>
Fri, 14 Dec 2018 20:39:15 +0000 (21:39 +0100)
tests/phpunit/CRM/Contact/BAO/GroupTest.php

index d6128fc3333d625bdc662bbf350f9ced3ceb5eb5..a2c54e1b4562b7dc086bd9068da253b79a62293c 100644 (file)
@@ -252,9 +252,11 @@ class CRM_Contact_BAO_GroupTest extends CiviUnitTestCase {
 
     $contactID = $this->individualCreate(['custom_' . $customFieldID => 'abc']);
 
+    $formValues = ['custom_' . $customFieldID => ['LIKE' => '%a%']];
+
     $hiddenSmartParams = [
       'group_type' => ['2' => 1],
-      'form_values' => ['custom_' . $customFieldID => ['LIKE' => '%a%']],
+      'form_values' => CRM_Contact_BAO_Query::convertFormValues($formValues),
       'saved_search_id' => NULL,
       'search_custom_id' => NULL,
       'search_context' => 'advanced',