Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]
Grade history report test.
Copyright: | 2014 Frédéric Massart - FMCorz.net |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 513 lines (26 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
gradereport_history_report_testcase:: (8 methods):
test_query_db()
test_get_users()
get_users_provider()
test_get_users_with_groups()
test_graders()
assertGradeHistoryIds()
create_grade_history()
get_tablelog_results()
gradereport_history_tests_tablelog:: (1 method):
get_test_results()
Class: gradereport_history_report_testcase - X-Ref
Grade history report test class.test_query_db() X-Ref |
Create some grades. |
test_get_users() X-Ref |
Test the get users helper method. |
get_users_provider() X-Ref |
Data provider method for \gradereport_history_report_testcase::test_get_users_with_groups() |
test_get_users_with_groups($groupmode, $teacherrole, $teachergroups, $expectedusers) X-Ref |
Test for helper::get_users() with course group mode set. param: $groupmode param: $teacherrole param: $teachergroups param: $expectedusers |
test_graders() X-Ref |
Test the get graders helper method. |
assertGradeHistoryIds(array $expectedids, array $objects) X-Ref |
Asserts that the array of grade objects contains exactly the right IDs. param: array $expectedids Array of expected IDs. param: array $objects Array of objects returned by the table. |
create_grade_history($params) X-Ref |
Create a new grade history entry. param: array $params Of values. return: object The grade object. |
get_tablelog_results($coursecontext, $filters = array() X-Ref |
Returns a table log object. param: context_course $coursecontext The course context. param: array $filters An array of filters. param: boolean $count When true, returns a count rather than an array of objects. return: mixed Count or array of objects. |
Class: gradereport_history_tests_tablelog - X-Ref
Extended table log class.get_test_results($count = false) X-Ref |
Get the test results. param: boolean $count Whether or not we want the count. return: mixed Count or array of objects. |