Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

Unit Tests for the request helper.

Copyright: 2018 Adrian Greeve
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 224 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: provider_test  - X-Ref

Tests for the \core_completion API's provider functionality.

test_get_course_completion_join_sql()   X-Ref
Test joining course completion data to an sql statement.


test_add_course_completion_users_to_userlist()   X-Ref
Test fetching users' course completion by context and adding to a userlist.


test_get_course_completion_info()   X-Ref
Test getting course completion information.


test_get_activity_completion_info()   X-Ref
Test getting activity completion information.


test_delete_completion_activity_user()   X-Ref
Test deleting activity completion information for a user.


test_delete_completion_course()   X-Ref
Test deleting course completion information.


test_delete_completion_by_approved_userlist()   X-Ref
Test deleting course completion information by approved userlist.


test_get_course_completion_info_completion_disabled()   X-Ref
Test getting course completion information with completion disabled.