From 7810fa53a7f5d8be82ebda7fde122d0fd349d358 Mon Sep 17 00:00:00 2001 From: Francesc Bassas i Bullich Date: Fri, 14 Dec 2018 21:39:15 +0100 Subject: [PATCH] Rewrite testHiddenSmartGroup --- tests/phpunit/CRM/Contact/BAO/GroupTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/BAO/GroupTest.php b/tests/phpunit/CRM/Contact/BAO/GroupTest.php index d6128fc333..a2c54e1b45 100644 --- a/tests/phpunit/CRM/Contact/BAO/GroupTest.php +++ b/tests/phpunit/CRM/Contact/BAO/GroupTest.php @@ -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', -- 2.25.1