[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> update_checker_test.php (summary)

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

core_update_checker_testcase:: (14 methods):
  test_core_available_update()
  test_cron_initial_fetch()
  test_cron_has_fresh_fetch()
  test_cron_has_outdated_fetch()
  test_cron_offset_execution_not_yet()
  test_cron_offset_execution()
  test_compare_responses_both_empty()
  test_compare_responses_old_empty()
  test_compare_responses_no_change()
  test_compare_responses_new_and_missing_update()
  test_compare_responses_modified_update()
  test_compare_responses_invalid_format()
  test_is_same_release_explicit()
  test_is_same_release_implicit()


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


test_is_same_release_explicit()   X-Ref
No description

test_is_same_release_implicit()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1