Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 311 and 403] [Versions 400 and 403] [Versions 401 and 403]

This file contains tests for scorm events.

Copyright: 2013 onwards Ankit Agarwal
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 373 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: events_test  - X-Ref

Test class for various events related to Scorm.

setUp()   X-Ref
No description

test_attempt_deleted_event()   X-Ref
Tests for attempt deleted event


test_interactions_viewed_event_validations()   X-Ref
Tests for interactions viewed validations.


test_tracks_viewed_event_validations()   X-Ref
Tests for tracks viewed event validations.


test_user_report_viewed_event_validations()   X-Ref
Tests for userreport viewed event validations.


get_scoreraw_submitted_event_provider()   X-Ref
dataProvider for test_scoreraw_submitted_event().


get_scoreraw_submitted_event_validations()   X-Ref
dataProvider for test_scoreraw_submitted_event_validations().


test_scoreraw_submitted_event_validations($cmielement, $cmivalue, $failmessage, $excmessage)   X-Ref
Tests for score submitted event validations.

param: string $cmielement a valid CMI raw score element
param: string $cmivalue a valid CMI raw score value
param: string $failmessage the message used to fail the test in case of missing to violate a validation rule
param: string $excmessage the exception message when violating the validations rules

get_status_submitted_event_provider()   X-Ref
dataProvider for test_status_submitted_event().


get_status_submitted_event_validations()   X-Ref
dataProvider for test_status_submitted_event_validations().


test_status_submitted_event_validations($cmielement, $cmivalue, $failmessage, $excmessage)   X-Ref
Tests for status submitted event validations.

param: string $cmielement a valid CMI status element
param: string $cmivalue a valid CMI status value
param: string $failmessage the message used to fail the test in case of missing to violate a validation rule
param: string $excmessage the exception message when violating the validations rules