Search moodle.org's
Developer Documentation

  • 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.
  • Differences Between: [Versions 37 and 311] [Versions 38 and 311] [Versions 39 and 311]

    Unit tests for the update checker.

    Copyright: 2012, 2015 David Mudrak <david@moodle.com>
    License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
    File Size: 291 lines (11 kb)
    Included or required:0 times
    Referenced: 0 times
    Includes or requires: 1 file
     lib/tests/fixtures/testable_update_checker.php

    Defines 1 class


    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