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: 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