Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

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.