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.

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

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