MDL-41191 enrol: unit tests for enrol_get_shared_courses
MDL-41191 enrol: fix use of deprecated function