Skip to content

Failing tests due to deprecated legacy log functions #53

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

Open
opitz opened this issue Apr 26, 2024 · 0 comments · May be fixed by #54
Open

Failing tests due to deprecated legacy log functions #53

opitz opened this issue Apr 26, 2024 · 0 comments · May be fixed by #54

Comments

@opitz
Copy link

opitz commented Apr 26, 2024

The code contains now deprecated legacy log functions that will cause PHPUnit and Behat tests to fail, e.g.:

PHPUnit test:
mod_hsuforum_events_testcase::test_discussion_created_forumid_validation Unexpected debugging() call detected. Debugging: Invalid event functions defined in \mod_hsuforum\event\discussion_created

Behat test:
In Open Forums a user with access to multiple groups should be able to post a copy of a message to all the groups they have access to/Teacher is able to post a copy of a message to all groups in a separate group forum And I add a new discussion to "Separate group forum" Open Forum with:: debugging() message/s found: Invalid event functions defined in \mod_hsuforum\event\course_module_viewed

Since Moodle 4.2 the legacy log store is deprecated (see: https://tracker.moodle.org/browse/MDL-52805) and these functions therefore need to be removed.

@opitz opitz linked a pull request Apr 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant