MDL-39957 course: replaced usage of recently removed function assertEventLegacyName from PHPUnit tests
MDL-39957 course: replaced the course_restored legacy event