Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 431 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: lib_test  - X-Ref

Unit tests for (some of) mod/h5pactivity/lib.php.

setUpBeforeClass()   X-Ref
Load required test libraries


test_h5pactivity_delete_instance()   X-Ref
Test that h5pactivity_delete_instance removes data.


test_print_recent_activity()   X-Ref
Test that assign_print_recent_activity shows ungraded submitted assignments.


test_print_recent_activity_fullname()   X-Ref
Test that h5pactivity_print_recent_activity does not display any warnings when a custom fullname has been configured.


test_h5pactivity_get_recent_mod_activity()   X-Ref
Test that h5pactivity_get_recent_mod_activity fetches the h5pactivity correctly.


test_h5pactivity_fetch_recent_activity()   X-Ref
Test that h5pactivity_get_recent_mod_activity fetches activity correctly.


test_h5pactivity_reset_userdata()   X-Ref
Test that h5pactivity_reset_userdata reset user data.