From bbf04e4ff3a222827f17b45dd11888826dfc2d57 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 11 Feb 2023 15:36:00 +0000 Subject: [PATCH] [REF][PHP8.2] Use variable instead of dynmaic property (CRM_Group_Page_AjaxTest) --- tests/phpunit/CRM/Group/Page/AjaxTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Group/Page/AjaxTest.php b/tests/phpunit/CRM/Group/Page/AjaxTest.php index 438b3ff0d9..23838240a5 100644 --- a/tests/phpunit/CRM/Group/Page/AjaxTest.php +++ b/tests/phpunit/CRM/Group/Page/AjaxTest.php @@ -723,10 +723,10 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase { ) VALUES (55, 'civicrm_group', $groupId, 1); "); // Put the user into this group - $this->_loggedInUser = CRM_Core_Session::singleton()->get('userID'); + $loggedInUser = CRM_Core_Session::singleton()->get('userID'); $this->callAPISuccess('group_contact', 'create', [ 'group_id' => $groupId, - 'contact_id' => $this->_loggedInUser, + 'contact_id' => $loggedInUser, ]); // Add the ACL CRM_Core_DAO::executeQuery(" -- 2.25.1