Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

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

Defines 1 class


Class: plugin_test  - X-Ref

Meta enrolment sync functional test.

enable_plugin()   X-Ref
No description

disable_plugin()   X-Ref
No description

is_meta_enrolled($user, $enrol, $role = null)   X-Ref
No description

has_role($user, $enrol, $role)   X-Ref
No description

test_sync()   X-Ref
No description

test_add_to_group()   X-Ref
No description

test_add_to_group_with_member()   X-Ref
Enrol users from another course into a course where one of the members is already enrolled
and is a member of the same group.


test_add_to_group_invalid()   X-Ref
Test enrolling users in a course, where the customint2 (group) property of the instance points to an invalid group


test_user_enrolment_created_event()   X-Ref
Test user_enrolment_created event.


test_user_enrolment_deleted_event()   X-Ref
Test user_enrolment_deleted event.


test_user_enrolment_updated_event()   X-Ref
Test user_enrolment_updated event.


test_enrol_meta_create_new_group()   X-Ref
Test that a new group with the name of the course is created.


test_timeend()   X-Ref
Test that enrolment timestart-timeend is respected in meta course.


test_get_user_enrolment_actions()   X-Ref
Test for getting user enrolment actions.


test_edit_instance_validation()   X-Ref
Test how data for instance editing is validated.