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

Tests of the basic API of the available update checker.

test_core_available_update()   X-Ref
No description

test_cron_initial_fetch()   X-Ref
If there are no fetched data yet, the first cron should fetch them.


test_cron_has_fresh_fetch()   X-Ref
If there is a fresh fetch available, no cron execution is expected.


test_cron_has_outdated_fetch()   X-Ref
If there is an outdated fetch, the cron execution is expected.


test_cron_offset_execution_not_yet()   X-Ref
The first cron after 01:42 AM today should fetch the data.


test_cron_offset_execution()   X-Ref
The first cron after 01:42 AM today should fetch the data and then
it is supposed to wait next 24 hours.


test_compare_responses_both_empty()   X-Ref
No description

test_compare_responses_old_empty()   X-Ref
No description

test_compare_responses_no_change()   X-Ref
No description

test_compare_responses_new_and_missing_update()   X-Ref
No description

test_compare_responses_modified_update()   X-Ref
No description

test_compare_responses_invalid_format()   X-Ref
No description

test_is_same_release_explicit()   X-Ref
No description

test_is_same_release_implicit()   X-Ref
No description