From a047579a8184fb68ff3ac44721f9e72c3e11efc8 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 16 Sep 2021 07:58:18 +1000 Subject: [PATCH] [NFC] Fix Fatal error on php 8 due to mis matched function declaration --- .../phpunit/CRM/Contact/Import/Form/MapFieldTest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php b/tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php index 85e4d96b2b..56e79ca392 100644 --- a/tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php +++ b/tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php @@ -129,10 +129,20 @@ class CRM_Contact_Import_Form_MapFieldTest extends CiviUnitTestCase { * @param string $class * @param array $formValues * @param string $pageName + * @param array $searchFormValues + * Values for the search form if the form is a task eg. + * for selected ids 6 & 8: + * [ + * 'radio_ts' => 'ts_sel', + * 'task' => CRM_Member_Task::PDF_LETTER, + * 'mark_x_6' => 1, + * 'mark_x_8' => 1, + * ] + * * @return \CRM_Core_Form * @throws \CRM_Core_Exception */ - public function getFormObject($class, $formValues = [], $pageName = '') { + public function getFormObject($class, $formValues = [], $pageName = '', $searchFormValues = []) { $form = parent::getFormObject($class); $contactFields = CRM_Contact_BAO_Contact::importableFields(); $fields = []; -- 2.25.1