Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Class: reopen_attempt_test  - X-Ref

Test for the reopen_attempt and get_reopen_attempt_confirmation services.

test_reopen_attempt_service_works()   X-Ref
No description

test_reopen_attempt_service_checks_permissions()   X-Ref
No description

test_reopen_attempt_service_checks_attempt_state()   X-Ref
No description

test_get_reopen_attempt_confirmation_staying_open()   X-Ref
No description

test_get_reopen_attempt_confirmation_staying_open_until()   X-Ref
No description

test_get_reopen_attempt_confirmation_submitting()   X-Ref
No description

test_get_reopen_attempt_confirmation_service_checks_permissions()   X-Ref
No description

test_get_reopen_attempt_confirmation_service_checks_attempt_state()   X-Ref
No description

create_attempt_at_quiz_with_one_shortanswer_question(string $attemptstate = quiz_attempt::ABANDONED)   X-Ref
Create a quiz of one shortanswer question and an attempt in a given state.

param: string $attemptstate the desired attempt state. quiz_attempt::ABANDONED or ::IN_PROGRESS.
return: array with two elements, the attempt id and the quiz id.