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: 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.