From: Francesc Bassas i Bullich Date: Fri, 14 Dec 2018 20:39:15 +0000 (+0100) Subject: Rewrite testHiddenSmartGroup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7810fa53a7f5d8be82ebda7fde122d0fd349d358;p=civicrm-core.git Rewrite testHiddenSmartGroup --- 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',