Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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.