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

This file contains unit test related to xAPI library.

Copyright: 2020 Ferran Recio
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 204 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: item_group_testcase  - X-Ref

Contains test cases for testing statement group class.

test_create()   X-Ref
Test item creation.


test_create_from_group()   X-Ref
Test item creation from Record.


test_invalid_data(string $objecttype, bool $validhome, bool $validid)   X-Ref
Test for invalid structures.

param: string $objecttype object type attribute
param: bool $validhome if valid homepage is user
param: bool $validid if valid group id is used

invalid_data_provider()   X-Ref
Data provider for the test_invalid_data tests.

return: array

test_missing_object_type()   X-Ref
Test for missing object type.


test_invalid_anonymous_group()   X-Ref
Test for invalid anonymous group.


test_inexistent_group()   X-Ref
Test for invalid anonymous group.


test_inexistent_group_id()   X-Ref
Test for invalid group record.