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.

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().