[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/engine/tests/ -> datalib_reporting_queries_test.php (summary)

Unit tests for the parts of {@link question_engine_data_mapper} related to reporting.

Copyright: 2013 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 327 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 question/engine/lib.php
 question/engine/tests/helpers.php

Defines 1 class

question_engine_data_mapper_reporting_testcase:: (7 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()


Class: question_engine_data_mapper_reporting_testcase  - 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()   X-Ref
This test is executed by {@link test_reporting_queries()}.


dotest_load_questions_usages_question_state_summary()   X-Ref
This test is executed by {@link test_reporting_queries()}.


dotest_load_questions_usages_where_question_in_state()   X-Ref
This test is executed by {@link test_reporting_queries()}.


dotest_load_average_marks()   X-Ref
This test is executed by {@link test_reporting_queries()}.


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()}.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1