Fixture for testing the functionality of core_h5p.
Copyright: | 2019 Victor Deniz <victor@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 106 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
h5p_test_factory:: (1 method):
get_core()
h5p_test_core:: (2 methods):
set_endpoint()
get_api_endpoint()
Class: h5p_test_factory - X-Ref
H5P factory class stub for testing purposes.Class: h5p_test_core - X-Ref
H5P core class stub for testing purposes.set_endpoint($url) X-Ref |
Set the endpoint URL param: string $url Endpoint URL return: void |
get_api_endpoint(?string $library = null, string $endpoint = 'content') X-Ref |
Get the URL of the test endpoints instead of the H5P ones. If $endpoint = 'content' and $library is null, moodle_url is the endpoint of the latest version of the H5P content types; however, if $library is the machine name of a content type, moodle_url is the endpoint to download the content type. The SITES endpoint ($endpoint = 'site') may be use to get a site UUID or send site data. param: string|null $library The machineName of the library whose endpoint is requested. param: string $endpoint The endpoint required. Valid values: "site", "content". return: \moodle_url The endpoint moodle_url object. |