MDL-73801 backup: set predictably ordered backup next start time.
commit3373632225f426bab950088362ddeb0aba00f011
authorPaul Holden <paulh@moodle.com>
Mon, 7 Feb 2022 21:22:50 +0000 (7 21:22 +0000)
committerPaul Holden <paulh@moodle.com>
Thu, 19 May 2022 07:19:19 +0000 (19 08:19 +0100)
tree159ed1125f279949024ee722d0cac58c46d01c18
parent0a3eedbebff711a6c01ab1e20efb8e5f51d0debf
MDL-73801 backup: set predictably ordered backup next start time.

Prior to this change, the testcase would assert ordering based on
identical fields which could lead to random failures. Set distinct
next start time of course backup, and also remove random ordering
by sorting on defined course order (all other fields being equal).
backup/util/helper/backup_cron_helper.class.php
backup/util/helper/tests/cronhelper_test.php