Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: scheduled_allocator_test  - X-Ref

Test for the scheduled allocator.

test_that_allocator_in_executed_on_submission_end_when_phaseswitchassessment_is_active()   X-Ref
Tests that student submissions get automatically alocated after the submission deadline and when the workshop
"Switch to the next phase after the submissions deadline" checkbox is active.


test_that_allocator_is_not_executed_when_its_not_active()   X-Ref
No allocations are performed if the allocator is not enabled.


activate_the_scheduled_allocator()   X-Ref
Activates and configures the scheduled allocator for the workshop.


setup_test_course_and_workshop()   X-Ref
Creates a minimum common setup to execute tests:


execute_workshop_cron_task()   X-Ref
Executes the workshop cron task.


execute_allocator_cron_task()   X-Ref
Executes the scheduled allocator cron task.


activate_switch_to_the_next_phase_after_submission_deadline()   X-Ref
Activates the "Switch to the next phase after the submissions deadline" flag in the workshop.


set_the_submission_deadline_in_the_past()   X-Ref
Sets the submission deadline in a past time.