Skip to content
Snippets Groups Projects
Commit 85efaeaa authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

Fix test to test trait not deprecated function

parent 50991431
Branches
Tags
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment