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 |
quiz_notify_attempt_manual_grading_completed_test:: (5 methods):
setUp()
test_get_list_of_attempts_within_conditions()
test_get_list_of_attempts_without_manual_graded()
test_notify_manual_grading_completed_task_without_capability()
test_notify_manual_grading_completed_task_with_capability()
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. |