Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310]

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: 311 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: enrol_flatfile_privacy_testcase  - 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.