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.

Class: lib_test  - X-Ref

Cohort library tests.

create_cohort_custom_field()   X-Ref
Create Cohort custom field for testing.

return: \core_customfield\field_controller

test_cohort_add_cohort()   X-Ref
No description

test_cohort_add_cohort_missing_name()   X-Ref
No description

test_cohort_add_cohort_event()   X-Ref
No description

test_cohort_update_cohort()   X-Ref
No description

test_cohort_update_cohort_event()   X-Ref
No description

test_cohort_delete_cohort()   X-Ref
No description

test_cohort_delete_cohort_event()   X-Ref
No description

test_cohort_delete_category()   X-Ref
No description

test_cohort_add_member()   X-Ref
No description

test_cohort_add_member_event()   X-Ref
No description

test_cohort_remove_member()   X-Ref
No description

test_cohort_remove_member_event()   X-Ref
No description

test_cohort_is_member()   X-Ref
No description

test_cohort_get_cohorts()   X-Ref
No description

test_cohort_get_all_cohorts()   X-Ref
No description

test_cohort_get_available_cohorts()   X-Ref
No description

test_get_functions_return_custom_fields()   X-Ref
Test that all get functions return custom fields data.


test_cohort_add_theme_cohort()   X-Ref
Create a cohort with allowcohortthemes enabled/disabled.


test_cohort_update_theme_cohort()   X-Ref
Update a cohort with allowcohortthemes enabled/disabled.


test_cohort_get_custom_fields_data()   X-Ref
Test that lib function returns custom field data for a cohorts.


test_cohort_get_cohort()   X-Ref
Test the behaviour of cohort_get_cohort().