Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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