Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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