From: Eileen McNaughton Date: Sun, 5 Sep 2021 00:34:09 +0000 (+1200) Subject: Fix test to test trait not deprecated function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=85efaeaac38985fb2c347f1817aea332b7b293a4;p=civicrm-core.git Fix test to test trait not deprecated function --- 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',