Show
Create 3 (or more) courses and enrol a user as a student
Create calendar events in all courses except one (to test empty case)
If the events callbacks have been implemented by any modules then create an instance of the module and set values to create the events according to the module
Otherwise you can use the attached create_events.php script to generate a bunch of junk events in the DB. You'll need to have an assignment module created in each course. Edit the create_events.php script and change the $courseid and $assignid to match your course and assignment instance ids respectively. The script will create 50 events spanning each of the categories
Log in as the student and go to your dashboard
Add the "myoverview" block, if it isn't already there
Confirm the events you create above are showing in the timeline -> sort by dates view
Click the "view more" button at the bottom and confirm that more events are loaded (and they aren't duplicates).
Click the "sort by courses" button
Confirm events are loaded in each of the courses blocks that you created events for
Confirm that the course you didn't create events for has no events displayed in it
Confirm that the "view more" button loads more events for only that course (assuming there are more events to load).
Confirm that the "view more" button is disabled once all events for that course have been loaded