[REF][PHP8.2] Use variable instead of dynmaic property (CRM_Group_Page_AjaxTest)
authorBradley Taylor <hello@brad-taylor.co.uk>
Sat, 11 Feb 2023 15:36:00 +0000 (15:36 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sat, 11 Feb 2023 15:36:00 +0000 (15:36 +0000)
tests/phpunit/CRM/Group/Page/AjaxTest.php

index 438b3ff0d9aa38224a9575075010189d15a662d0..23838240a51491a7f2ba42e62d9fb2aacb69cd4a 100644 (file)
@@ -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("