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.

Class: externallib_test  - X-Ref

Group external PHPunit tests

create_group_custom_field()   X-Ref
Create group custom field for testing.

return: field_controller

create_grouping_custom_field()   X-Ref
Create grouping custom field for testing.

return: field_controller

test_create_groups()   X-Ref
Test create_groups


test_create_groups_with_customfields()   X-Ref
Test create_groups with custom fields.


test_create_group_invalid_visibility()   X-Ref
Test that creating a group with an invalid visibility value throws an exception.

return: void

test_update_groups()   X-Ref
Test update_groups


test_update_groups_with_customfields()   X-Ref
Test update_groups with custom fields.


test_update_groups_invalid_visibility()   X-Ref
Test an exception is thrown when an invalid visibility value is passed in an update.

return: void

test_update_groups_visibility_with_members()   X-Ref
Attempting to change the visibility of a group with members should throw an exception.

return: void

test_update_groups_participation_with_members()   X-Ref
Attempting to change the participation field of a group with members should throw an exception.

return: void

test_get_groups()   X-Ref
Test get_groups


test_get_groups_with_customfields()   X-Ref
Test get_groups with customfields.


test_delete_groups()   X-Ref
Test delete_groups


test_create_update_groupings()   X-Ref
Test create and update groupings.

return: void

test_create_groupings_with_customfields()   X-Ref
Test create_groupings with custom fields.


test_update_groupings_with_customfields()   X-Ref
Test update_groups with custom fields.


test_get_groupings()   X-Ref
Test get_groupings


test_get_groupings_with_customfields()   X-Ref
Test get_groupings with customfields.


test_delete_groupings()   X-Ref
Test delete_groupings.


test_get_course_user_groups()   X-Ref
Test get_groups


test_get_activity_allowed_groups()   X-Ref
Test get_activity_allowed_groups


test_get_activity_groupmode()   X-Ref
Test get_activity_groupmode


test_add_group_members()   X-Ref
Test add_group_members.


test_delete_group_members()   X-Ref
Test delete_group_members.