Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

Testing the H5P core methods.

Copyright: 2019 Victor Deniz <victor@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 213 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: h5p_core_test  - X-Ref

Test class covering the H5PFileStorage interface implementation.

setUp()   X-Ref
No description

test_fetch_content_type()   X-Ref
Check that given an H5P content type machine name, the required library are fetched and installed from the official H5P
repository.


test_fetch_latest_content_types()   X-Ref
Test that latest version of non installed H5P content type libraries are fetched and installed from the
official H5P repository. To speed up the test, only if checked that one content type is installed.


test_get_site_uuid()   X-Ref
Test that if site_uuid is not set, the site is registered and site_uuid is set.


test_get_default_handler()   X-Ref
Test if no handler has been defined.