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.

(no description)

File Size: 268 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 core_xapi.

setUpBeforeClass()   X-Ref
Setup to ensure that fixtures are loaded.


set_up_data()   X-Ref
Helper to set up some sample data.

return: array Array with the users that have been created.

test_add_contexts_for_userid()   X-Ref
Test confirming that contexts of xapi items can be added to the contextlist.


test_add_userids_for_context()   X-Ref
Test confirming that user ID's of xapi states can be added to the userlist.


test_get_xapi_states_for_user()   X-Ref
Test fetching the xapi state data for a specified user in a specified component and itemid.


test_delete_states_for_user()   X-Ref
Test deletion of user xapi states based on an approved_contextlist and component area.


test_delete_states_for_all_users()   X-Ref
Test deletion of all user xapi states.


test_delete_states_for_userlist()   X-Ref
Test deletion of user xapi states based on an approved_userlist and component area.