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: user_deleted_observer_test  - X-Ref

Event observer test.

test_create_delete_data_request()   X-Ref
Ensure that a delete data request is created upon user deletion.


test_create_delete_data_request_automatic_creation_disabled()   X-Ref
Ensure that a delete data request is not created upon user deletion if automatic creation of
delete data requests is disabled.


test_create_delete_data_request_export_data_request_preexists()   X-Ref
Ensure that a delete data request is being created upon user deletion
if an ongoing export data request (or any other except delete data request) for that user already exists.


test_create_delete_data_request_ongoing_delete_data_request_preexists()   X-Ref
Ensure that a delete data request is not being created upon user deletion
if an ongoing delete data request for that user already exists.


test_create_delete_data_request_canceled_delete_data_request_preexists()   X-Ref
Ensure that a delete data request is being created upon user deletion
if a finished delete data request (excluding complete) for that user already exists.


test_create_delete_data_request_completed_delete_data_request_preexists()   X-Ref
Ensure that a delete data request is being created upon user deletion
if a completed delete data request for that user already exists.


trigger_delete_user_event($user)   X-Ref
Helper to trigger and capture the delete user event.

param: object $user The user object.
return: \core\event\user_deleted $event The returned event.