Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

Defines 1 class


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.