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.

Differences Between: [Versions 401 and 402] [Versions 401 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.