Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Class: start_submission_test  - X-Ref

Test the start_submission external function.

setUp()   X-Ref
Called before every test.


test_start_submission_with_invalid_assign_id()   X-Ref
Test start_submission if assignment doesn't exist matching id.


test_start_submission_when_user_has_no_capability_to_view_assignment()   X-Ref
Test start_submission if user is not able to access activity or course.


test_start_submission_when_assignment_past_due_date()   X-Ref
Test start_submission if assignment cut off date has elapsed.


test_start_submission_when_time_limit_disabled()   X-Ref
Test start_submission if time limit is disabled.


test_start_submission_when_time_limit_not_set()   X-Ref
Test start_submission if time limit is not set for assignment.


test_start_submission_when_submission_already_open()   X-Ref
Test start_submission if user already has open submission.


test_start_submission_with_no_attempts_available()   X-Ref
Test start_submission if user has already submitted with no additional attempts available.


test_start_submission_with_new_submission()   X-Ref
Test start_submission if user has no open submissions.