Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.