Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Class: antivirus_test  - X-Ref

Tests for antivirus manager.

setUp()   X-Ref


enable_logging()   X-Ref
Enable logging.

return: void

get_check_api_antivirus_status_result()   X-Ref
Return check api status for the antivirus check.

return: string Based on status of \core\check\result.

tearDown()   X-Ref
No description

test_manager_get_antivirus()   X-Ref
No description

test_manager_scan_file_no_virus()   X-Ref
No description

test_manager_scan_file_error()   X-Ref
No description

test_antivirus_check_na()   X-Ref
No description

test_antivirus_check_unknown()   X-Ref
No description

test_antivirus_check_ok()   X-Ref
No description

test_antivirus_check_error()   X-Ref
No description

test_manager_scan_file_virus()   X-Ref
No description

test_manager_send_message_to_user_email_scan_file_virus()   X-Ref
No description

test_manager_send_message_to_admin_email_scan_file_virus()   X-Ref
No description

test_manager_quarantine_file_virus()   X-Ref
No description

test_manager_none_quarantine_file_virus()   X-Ref
No description

test_manager_scan_data_no_virus()   X-Ref
No description

test_manager_scan_data_error()   X-Ref
No description

test_manager_scan_data_virus()   X-Ref
No description

test_manager_send_message_to_user_email_scan_data_virus()   X-Ref
No description

test_manager_send_message_to_admin_email_scan_data_virus()   X-Ref
No description

test_manager_quarantine_data_virus()   X-Ref
No description

test_manager_none_quarantine_data_virus()   X-Ref
No description