Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 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: 196 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

h5p_core_testcase:: (5 methods):
  setup()
  test_fetch_content_type()
  test_fetch_latest_content_types()
  test_get_site_uuid()
  test_get_default_handler()


Class: h5p_core_testcase  - 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.