Privacy tests for enrol_flatfile.
Copyright: | 2018 Jake Dallimore <jrhdallimore@gmail.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 312 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
provider_test:: (11 methods):
setUp()
test_get_metadata()
test_get_contexts_for_user()
test_export_user_data()
test_export_user_data_restricted_context_subset()
test_delete_data_for_all_users_in_context()
test_delete_data_for_user()
test_get_users_in_context()
test_delete_data_for_users()
create_future_enrolments()
enable_plugin()
Class: provider_test - X-Ref
Privacy tests for enrol_flatfile.setUp() X-Ref |
Called before every test. |
test_get_metadata() X-Ref |
Verify that get_metadata returns the database table mapping. |
test_get_contexts_for_user() X-Ref |
Verify that the relevant course contexts are returned for users with pending enrolment records. |
test_export_user_data() X-Ref |
Verify the export includes any future enrolment records for the user. |
test_export_user_data_restricted_context_subset() X-Ref |
Verify export will limit any future enrolment records to only those contextids provided. |
test_delete_data_for_all_users_in_context() X-Ref |
Verify that records can be deleted by context. |
test_delete_data_for_user() X-Ref |
No description |
test_get_users_in_context() X-Ref |
Test for provider::get_users_in_context(). |
test_delete_data_for_users() X-Ref |
Test for provider::delete_data_for_users(). |
create_future_enrolments() X-Ref |
Helper to sync a file and create the enrol_flatfile DB entries, for use with the get, export and delete tests. |
enable_plugin() X-Ref |
Enables the flatfile plugin for testing. |