MDL-39957 course: replaced add_to_log for deleting courses
MDL-39957 course: altered the handling of legacy log data when updating a course as this occurs in multiple places
MDL-39957 course: replaced add_to_log for moving courses
MDL-39957 course: replaced add_to_log for hiding/showing courses
MDL-39957 course: added additional PHPUnit assertions for when an event is triggered by moving a course