Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Data provider tests.

Author: Frédéric Massart <fred@branchup.tech>
Copyright: 2018 Frédéric Massart
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 512 lines (23 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: provider_test  - X-Ref

External subsytem testcase class.

setUp()   X-Ref
No description

test_get_contexts_for_userid()   X-Ref
Test the external service get_contexts_for_userid function.


test_delete_data_for_user()   X-Ref
Test delete_data_for_user


test_delete_data_for_all_users_in_context()   X-Ref
Test delete_data_for_all_users_in_context


test_export_data_for_user()   X-Ref
Test the export_user_data function.


test_get_users_in_context()   X-Ref
Test that only users with a user context are fetched.


test_delete_data_for_users()   X-Ref
Test that data for users in approved userlist is deleted.


create_service(array $params = [])   X-Ref
Create a service.

param: array $params The params.
return: \stdClass

create_service_user(array $params)   X-Ref
Create a service user.

param: array $params The params.
return: \stdClass

create_token(array $params)   X-Ref
Create a token.

param: array $params The params.
return: stdClass