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.

Differences Between: [Versions 400 and 402] [Versions 400 and 403]

Contains the class containing unit tests for the quiz notify attempt manual grading completed cron task.

Copyright: 2021 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 275 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: quiz_notify_attempt_manual_grading_completed_test  - X-Ref

Class containing unit tests for the quiz notify attempt manual grading completed cron task.

setUp()   X-Ref
Standard test setup.

Create a course with a quiz and a student and a(n editing) teacher.
the quiz has a truefalse question and an essay question.

Also create some bits of a quiz attempt to be used later.

test_get_list_of_attempts_within_conditions()   X-Ref
Test SQL querry get list attempt in condition.


test_get_list_of_attempts_without_manual_graded()   X-Ref
Test SQL query does not return attempts if the grading is not complete yet.


test_notify_manual_grading_completed_task_without_capability()   X-Ref
Test notify manual grading completed task which the user attempt has not capability.


test_notify_manual_grading_completed_task_with_capability()   X-Ref
Test notify manual grading completed task which the user attempt has capability.