This test requires a quiz containing several questions.
1. Login as a teacher, edit the settings for the quiz and set a time limit.
2. Login as a student, access the quiz and check that the time limit is stated.
3. Attempt the quiz and check that the time left is displayed on each page.
4. Answer some but not all of the questions and allow the time to run out.
5. Check that when the time runs out, the quiz is submitted automatically with whatever answers have been filled in.