From: Bradley Taylor Date: Sat, 11 Feb 2023 15:36:00 +0000 (+0000) Subject: [REF][PHP8.2] Use variable instead of dynmaic property (CRM_Group_Page_AjaxTest) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bbf04e4ff3a222827f17b45dd11888826dfc2d57;p=civicrm-core.git [REF][PHP8.2] Use variable instead of dynmaic property (CRM_Group_Page_AjaxTest) --- 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("