[NFC][PHP8.2] Fix dynamic property _loggedInUser
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 16 Jul 2023 22:57:16 +0000 (08:57 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 16 Jul 2023 22:57:16 +0000 (08:57 +1000)
tests/phpunit/CiviTest/CiviUnitTestCase.php

index a51328484a26e98d6cc593547e91c5751ff15f29..bf917de2e7939e3831df3aa10fd8c91d3186762d 100644 (file)
@@ -2068,10 +2068,10 @@ class CiviUnitTestCase extends PHPUnit\Framework\TestCase {
       ");
     }
 
-    $this->_loggedInUser = CRM_Core_Session::singleton()->get('userID');
+    $loggedInUser = CRM_Core_Session::singleton()->get('userID');
     $this->callAPISuccess('group_contact', 'create', [
       'group_id' => $permissionedGroup,
-      'contact_id' => $this->_loggedInUser,
+      'contact_id' => $loggedInUser,
     ]);
 
     if (!$isProfile) {