Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

(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