Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 311 and 400]

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.