MDL-40997 phpunit: Assertions for events legacy data
MDL-41029 core: Fix wrong guessing of course id in event base
MDL-39957 course: replaced the course_created legacy event
MDL-39957 course: replaced the course_updated legacy event
MDL-39957 course: replaced the course_deleted legacy event
MDL-39957 course: replaced the course_content_deleted legacy event
MDL-39957 course: replaced the course_category_deleted legacy event
MDL-39957 course: replaced the course_restored legacy event