Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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: 223 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_completion_privacy_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.