Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

Differences Between: [Versions 39 and 310]

Tests for scheduled tasks.

Copyright: 2018 Mihail Geshoski <mihail@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 237 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 admin/tool/dataprivacy/tests/data_privacy_testcase.php

Defines 1 class


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