Description
The user_report_viewed event is triggered when somebody views a report of a particular user's forum usage. This report can look at site wide forum usage rather than for a single course, in which case there is no particular related course. As a result the Moodle event can have a course id of 0, if the user was looking at a report of all forum activity for all courses.
The generates an error when we try to get course information because course 0 does not exist.
To fix:
Update tests data to have the event include a course id of 0.
Description The user_report_viewed event is triggered when somebody views a report of a particular user's forum usage. This report can look at site wide forum usage rather than for a single course, in which case there is no particular related course. As a result the Moodle event can have a course id of 0, if the user was looking at a report of all forum activity for all courses.
The generates an error when we try to get course information because course 0 does not exist.
To fix:
I'll try and get a PR in tomorrow.
Version 4.2.4