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.

Class: data_connector_test  - X-Ref

Test the data_connector class.

setUp()   X-Ref
Test set up.

This is executed before running any test in this file.

test_load_consumer()   X-Ref
Test for data_connector::loadToolConsumer().


test_save_consumer()   X-Ref
Test for data_connector::saveToolConsumer().


test_delete_tool_consumer()   X-Ref
Test for data_connector::deleteToolConsumer().


test_get_tool_consumers()   X-Ref
Test for data_connector::getToolConsumers().


test_get_tool_proxy()   X-Ref
Test for data_connector::loadToolProxy().


test_save_tool_proxy()   X-Ref
Test for data_connector::saveToolProxy().


test_delete_tool_proxy()   X-Ref
Test for data_connector::deleteToolProxy().


test_load_context()   X-Ref
Test for data_connector::loadContext().


test_save_context()   X-Ref
Test for data_connector::saveContext().


test_delete_context()   X-Ref
Test for data_connector::deleteContext().


test_load_resource_link()   X-Ref
Test for data_connector::loadResourceLink().


test_save_resource_link()   X-Ref
Test for data_connector::saveResourceLink().


test_delete_resource_link()   X-Ref
Test for data_connector::deleteResourceLink().


test_get_user_result_sourced_ids_resource_link()   X-Ref
Test for data_connector::getUserResultSourcedIDsResourceLink().


test_get_shares_resource_link()   X-Ref
Test for data_connector::getSharesResourceLink().


test_load_consumer_nonce()   X-Ref
Test for data_connector::loadConsumerNonce().


test_load_consumer_nonce_expired()   X-Ref
Test for data_connector::loadConsumerNonce() for a nonce that has expired.


test_save_consumer_nonce()   X-Ref
Test for data_connector::saveConsumerNonce().


test_load_resource_link_share_key()   X-Ref
Test for data_connector::loadResourceLinkShareKey().


test_load_resource_link_share_key_expired()   X-Ref
Test for data_connector::loadResourceLinkShareKey() with an expired share key.


test_save_resource_link_share_key()   X-Ref
Test for data_connector::saveResourceLinkShareKey().


test_delete_resource_link_share_key()   X-Ref
Test for data_connector::deleteResourceLinkShareKey().


test_load_user()   X-Ref
Test for data_connector::loadUser().


test_save_user()   X-Ref
Test for data_connector::saveUser().


test_delete_user()   X-Ref
Test for data_connector::deleteUser().


test_get_contexts_from_consumer()   X-Ref
Test for data_connector::get_contexts_from_consumer().


test_get_consumers_mapped_to_tool()   X-Ref
Test for data_connector::get_consumers_mapped_to_tool().


test_get_resourcelink_from_consumer()   X-Ref
Test for data_connector::get_resourcelink_from_consumer()


test_get_resourcelink_from_context()   X-Ref
Test for data_connector::get_resourcelink_from_context()