Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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.