Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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