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.

Differences Between: [Versions 310 and 402] [Versions 39 and 402]

(no description)

File Size: 223 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: collection_test  - X-Ref

Tests for the \core_privacy API's collection functionality.

test_add_type_generic_type()   X-Ref
Test that adding an unknown type causes the type to be added to the collection.


test_add_type_known_type()   X-Ref
Test that adding a known type works as anticipated.


test_add_type_multiple()   X-Ref
Test that adding multiple types returns them all.


test_add_database_table()   X-Ref
Test that the add_database_table function adds a database table.


test_add_user_preference()   X-Ref
Test that the add_user_preference function adds a single user preference.


test_link_external_location()   X-Ref
Test that the link_external_location function links an external location.


test_link_subsystem()   X-Ref
Test that the link_subsystem function links the subsystem.


test_link_plugintype()   X-Ref
Test that the link_plugintype function links the plugin.


component_list_provider()   X-Ref
Data provider to supply a list of valid components.

return: array

test_get_component($component)   X-Ref
Test that we can get the component correctly.

The component will be used for string translations.

param: string  $component The component to test