Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF][PHP8.2] Tidy up properties in CRM_Event_BAO_EventPermissionsTest #25623

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

braders
Copy link
Contributor

@braders braders commented Feb 19, 2023

Overview

Tidy up properties in CRM_Event_BAO_EventPermissionsTest.

Before

The CRM_Event_BAO_EventPermissionsTest test class used dynamic properties, which are deprecated in PHP 8.2.

After

The use of dynamic properties has been removed, and some of the property names have been improved to fit the current CiviCRM best-practices.

There were also a few instances of this line:

$this->_loggedInUser = CRM_Core_Session::singleton()->get('userID');

I couldn't see _loggedInUser used in the tests, or in any CiviUnitTestCase methods that this test is calling. Therefore these lines have been removed.

@civibot
Copy link

civibot bot commented Feb 19, 2023

(Standard links)

@civibot civibot bot added the master label Feb 19, 2023
@seamuslee001 seamuslee001 merged commit 27e45a5 into civicrm:master Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants