Merge pull request #16766 from seamuslee001/5_23_2_release_notes
[civicrm-core.git] / tests / phpunit / CiviTest / CiviUnitTestCase.php
index a799c723185a5d13eb96df14c8f132cc9a231d0f..173c06e6e1ebf239ecc31515661961246b5db6ec 100644 (file)
@@ -1289,10 +1289,7 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
    * @return int
    */
   public function smartGroupCreate($smartGroupParams = [], $groupParams = [], $contactType = 'Household') {
-    $smartGroupParams = array_merge([
-      'formValues' => ['contact_type' => ['IN' => [$contactType]]],
-    ],
-      $smartGroupParams);
+    $smartGroupParams = array_merge(['form_values' => ['contact_type' => ['IN' => [$contactType]]]], $smartGroupParams);
     $savedSearch = CRM_Contact_BAO_SavedSearch::create($smartGroupParams);
 
     $groupParams['saved_search_id'] = $savedSearch->id;