See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]
(no description)
File Size: | 382 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files question/engine/tests/helpers.php question/engine/lib.php |
datalib_reporting_queries_test:: (8 methods):
test_reporting_queries()
dotest_load_questions_usages_latest_steps()
dotest_load_questions_usages_question_state_summary()
dotest_load_questions_usages_where_question_in_state()
dotest_load_average_marks()
dotest_sum_usage_marks_subquery()
dotest_question_attempt_latest_state_view()
test_quiz_with_description_questions_recalculate_statistics()
Class: datalib_reporting_queries_test - X-Ref
Unit tests for the parts of {@link question_engine_data_mapper} related to reporting.test_reporting_queries() X-Ref |
Test the various methods that load data for reporting. Since these methods need an expensive set-up, and then only do read-only operations on the data, we use a single method to do the set-up, which calls diffents methods to test each query. |
dotest_load_questions_usages_latest_steps($slots) X-Ref |
This test is executed by {@link test_reporting_queries()}. param: array|null $slots list of slots to use in the call. |
dotest_load_questions_usages_question_state_summary($slots) X-Ref |
This test is executed by {@link test_reporting_queries()}. param: array|null $slots list of slots to use in the call. |
dotest_load_questions_usages_where_question_in_state() X-Ref |
This test is executed by {@link test_reporting_queries()}. |
dotest_load_average_marks($slots) X-Ref |
This test is executed by {@link test_reporting_queries()}. param: array|null $slots list of slots to use in the call. |
dotest_sum_usage_marks_subquery() X-Ref |
This test is executed by {@link test_reporting_queries()}. |
dotest_question_attempt_latest_state_view() X-Ref |
This test is executed by {@link test_reporting_queries()}. |
test_quiz_with_description_questions_recalculate_statistics() X-Ref |
Test that a Quiz with only description questions wont break \quiz_statistics\task\recalculate. |