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: | 563 lines (25 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
provider_test:: (12 methods):
setUp()
test_get_contexts_for_userid()
test_get_users_in_context()
test_delete_data_for_user()
test_delete_data_for_users()
test_delete_data_for_all_users_in_context()
test_export_user_data()
assert_no_feedback_data_for_user()
assert_feedback_data_for_user()
assert_feedback_tmp_data_for_user()
create_submission_with_answers()
create_tmp_submission_with_answers()
Class: provider_test - X-Ref
Data provider testcase class.setUp() X-Ref |
No description |
test_get_contexts_for_userid() X-Ref |
Test getting the contexts for a user. |
test_get_users_in_context() X-Ref |
Test getting the users in a context. |
test_delete_data_for_user() X-Ref |
Test deleting user data. |
test_delete_data_for_users() X-Ref |
Test deleting data within a context for an approved userlist. |
test_delete_data_for_all_users_in_context() X-Ref |
Test deleting a whole context. |
test_export_user_data() X-Ref |
Test exporting data. |
assert_no_feedback_data_for_user($feedback, $user) X-Ref |
Assert there is no feedback data for a user. param: object $feedback The feedback. param: object $user The user. return: void |
assert_feedback_data_for_user($feedback, $user, $submissioncount = 1, $valuecount = 2) X-Ref |
Assert there are submissions and answers for user. param: object $feedback The feedback. param: object $user The user. param: int $submissioncount The number of submissions. param: int $valuecount The number of values per submission. return: void |
assert_feedback_tmp_data_for_user($feedback, $user, $submissioncount = 1, $valuecount = 2) X-Ref |
Assert there are temporary submissions and answers for user. param: object $feedback The feedback. param: object $user The user. param: int $submissioncount The number of submissions. param: int $valuecount The number of values per submission. return: void |
create_submission_with_answers($feedback, $user, $answers, $submissioncount = 1) X-Ref |
Create an submission with answers. param: object $feedback The feedback. param: object $user The user. param: array $answers Answers. param: int $submissioncount The number of submissions expected after this entry. return: void |
create_tmp_submission_with_answers($feedback, $user, $answers) X-Ref |
Create a temporary submission with answers. param: object $feedback The feedback. param: object $user The user. param: array $answers Answers. return: void |