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 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

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

Defines 1 class


Class: handler_test  - X-Ref

Contains test cases for testing xAPI handler base methods.

setUpBeforeClass()   X-Ref
Setup to ensure that fixtures are loaded.


test_handler_create()   X-Ref
Test handler creation.


test_supports_xapi()   X-Ref
Test xAPI support.


test_support_group_actor()   X-Ref
Test support group.


test_process_statements()   X-Ref
Test for process_statements method.


test_save_state()   X-Ref
Testing save_state method.


test_load_state()   X-Ref
Testing load_state method.


test_delete_state()   X-Ref
Testing delete_state method.


test_reset_states()   X-Ref
Testing reset_states method.


test_wipe_states()   X-Ref
Testing wipe_states method.


check_state(string $component, state $state, stdClass $record)   X-Ref
Check if the given state and record are equals.

param: string $component The component name in frankenstyle.
param: state $state The state to check.
param: stdClass $record The record to be compared with the state.