Data provider tests.
Author: | Frédéric Massart <fred@branchup.tech> |
Copyright: | 2018 Frédéric Massart |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 891 lines (43 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
provider_test:: (16 methods):
setUp()
test_get_contexts_for_userid()
test_get_users_in_context()
test_delete_data_for_all_users_in_context()
test_delete_data_for_user()
test_delete_data_for_users()
test_export_data_for_user_overrides()
test_export_data_for_user_grades()
test_export_data_for_user_timers()
test_export_data_for_user_attempts()
assert_attempt_page()
create_attempt()
create_grade()
create_timer()
create_branch()
create_override()
Class: provider_test - X-Ref
Data provider testcase class.setUp() X-Ref |
No description |
test_get_contexts_for_userid() X-Ref |
No description |
test_get_users_in_context() X-Ref |
No description |
test_delete_data_for_all_users_in_context() X-Ref |
No description |
test_delete_data_for_user() X-Ref |
No description |
test_delete_data_for_users() X-Ref |
No description |
test_export_data_for_user_overrides() X-Ref |
No description |
test_export_data_for_user_grades() X-Ref |
No description |
test_export_data_for_user_timers() X-Ref |
No description |
test_export_data_for_user_attempts() X-Ref |
No description |
assert_attempt_page($page, $attempt) X-Ref |
Assert the page details of an attempt. param: object $page The expected page info. param: array $attempt The exported attempt details. return: void |
create_attempt($lesson, $user, array $options = []) X-Ref |
Create an attempt (answer to a question). param: object $lesson The lesson. param: object $user The user. param: array $options Options. return: object |
create_grade($lesson, $user, array $options = []) X-Ref |
Create a grade. param: object $lesson The lesson. param: object $user The user. param: array $options Options. return: object |
create_timer($lesson, $user, array $options = []) X-Ref |
Create a timer. param: object $lesson The lesson. param: object $user The user. param: array $options Options. return: object |
create_branch($lesson, $user, array $options = []) X-Ref |
Create a branch (choice on page). param: object $lesson The lesson. param: object $user The user. param: array $options Options. return: object |
create_override($lesson, $user, array $options = []) X-Ref |
Create an override. param: object $lesson The lesson. param: object $user The user. param: array $options Options. return: object |