From 9bf7f39273a86d99014a112435b015b0c9a6c83b Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Thu, 21 Dec 2023 19:53:45 +0000 Subject: [PATCH] [REF][PHP8.2] Use correct form object to ensure properties exist --- tests/phpunit/CRM/Contact/Form/Task/SMSCommonTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Contact/Form/Task/SMSCommonTest.php b/tests/phpunit/CRM/Contact/Form/Task/SMSCommonTest.php index a34ba3946b..1b6d5f28ab 100644 --- a/tests/phpunit/CRM/Contact/Form/Task/SMSCommonTest.php +++ b/tests/phpunit/CRM/Contact/Form/Task/SMSCommonTest.php @@ -97,7 +97,8 @@ class CRM_Contact_Form_Task_SMSCommonTest extends CiviUnitTestCase { * Test to ensure SMS Activity QuickForm displays the right phone numbers. */ public function testQuickFormMobileNumbersDisplay(): void { - $form = $this->getFormObject('CRM_Core_Form'); + /** @var CRM_Activity_Form_Task_SMS $form */ + $form = $this->getFormObject('CRM_Contact_Form_Task_SMS'); $form->_contactIds = array_values($this->ids['Contact']); $form->_single = FALSE; CRM_Contact_Form_Task_SMSCommon::buildQuickForm($form); -- 2.25.1