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