Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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.