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.

Class: task_test  - X-Ref

Tests for scheduled tasks.

tearDown()   X-Ref
Test tearDown.


test_delete_existing_deleted_users_task_no_previous_requests()   X-Ref
Ensure that a delete data request for pre-existing deleted users
is created when there are not any existing data requests
for that particular user.


test_delete_existing_deleted_users_task_automatic_creation_disabled()   X-Ref
Ensure that a delete data request for pre-existing deleted users
is not being created when automatic creation of delete data requests is disabled.


test_delete_existing_deleted_users_task_existing_export_data_requests()   X-Ref
Ensure that a delete data request for pre-existing deleted users
is created when there are existing non-delete data requests
for that particular user.


test_delete_existing_deleted_users_task_existing_ongoing_delete_data_requests()   X-Ref
Ensure that a delete data request for pre-existing deleted users
is not created when there are existing ongoing delete data requests
for that particular user.


test_delete_existing_deleted_users_task_existing_finished_delete_data_requests()   X-Ref
Ensure that a delete data request for pre-existing deleted users
is not created when there are existing finished delete data requests
for that particular user.


execute_task($task)   X-Ref
Helper to execute a particular task.

param: string $task The task.