-
Functional Test
-
Minor
-
Moodle 3.4
-
None
Test Pre-requisites:
- Go to Site administration ► Plugins ► Activity modules ► Quiz ► General settings. Set last submission grace period (graceperiodmin) set to 10
- Create a quiz where the teacher has set a time limit, a close date and "When time expires" to "Open attempts are submitted automatically".
Test Steps:
1. As student, start a quiz attempt and answer some questions but not all, then log out of Moodle.
2. Wait until time limit + last submission grace period has expired and Before the close date has passed. CRON has not been run yet.
3. CRON runs!
4. Log in as teacher, and you should be able to see that the attempt has been updated to finished and no longer "In-progress".
5. Log in as student, and you should see that the attempt has been submitted.