From 85efaeaac38985fb2c347f1817aea332b7b293a4 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 5 Sep 2021 12:34:09 +1200 Subject: [PATCH] Fix test to test trait not deprecated function --- tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php b/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php index 9eb49cdf6e..a6bd772ab4 100644 --- a/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php +++ b/tests/phpunit/CRM/Contact/Form/Task/EmailCommonTest.php @@ -107,8 +107,8 @@ class CRM_Contact_Form_Task_EmailCommonTest extends CiviUnitTestCase { // This rule somehow disappears if there's a form-related test before us, // so register it again. See packages/HTML/QuickForm/file.php. $form->registerRule('maxfilesize', 'callback', '_ruleCheckMaxFileSize', 'HTML_QuickForm_file'); - CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($form); - $form->buildQuickForm(); + $form->isSearchContext = FALSE; + $form->buildForm(); $form->submit(array_merge($form->_defaultValues, [ 'from_email_address' => $loggedInEmail['id'], 'subject' => 'Really interesting stuff', -- 2.25.1