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.

Class: provider_test  - X-Ref

Privacy provider test for core_group.

test_get_metadata()   X-Ref
Test for provider::get_metadata().


test_export_groups()   X-Ref
Test for provider::export_groups() to export manual group memberships.


test_export_groups_for_component()   X-Ref
Test for provider::export_groups() to export group memberships of a component.


test_delete_groups_for_all_users()   X-Ref
Test for provider::delete_groups_for_all_users() to delete manual group memberships.


test_delete_groups_for_all_users_for_component()   X-Ref
Test for provider::delete_groups_for_all_users() to delete group memberships of a component.


test_delete_groups_for_all_users_deletes_cache()   X-Ref
Test for provider::delete_groups_for_all_users() to check deleting from cache.


test_delete_groups_for_user()   X-Ref
Test for provider::delete_groups_for_user() to delete manual group memberships.


test_delete_groups_for_user_for_component()   X-Ref
Test for provider::delete_groups_for_user() to delete group memberships of a component.


test_delete_groups_for_users_for_component()   X-Ref
Test for provider::delete_groups_for_users() to delete group memberships of a component.


test_delete_groups_for_user_deletes_cache()   X-Ref
Test for provider::delete_groups_for_user() to check deleting from cache.


test_get_contexts_for_userid()   X-Ref
Test for provider::get_contexts_for_userid().


test_get_contexts_for_userid_component()   X-Ref
Test for provider::get_contexts_for_userid() when there are group memberships from other components.


test_export_user_data()   X-Ref
Test for provider::export_user_data().


test_delete_data_for_all_users_in_context()   X-Ref
Test for provider::delete_data_for_all_users_in_context().


test_delete_data_for_user()   X-Ref
Test for provider::delete_data_for_user().


test_delete_data_for_users()   X-Ref
Test for provider::delete_data_for_users().


test_get_users_in_context()   X-Ref
Test for provider::get_users_in_context().