From f607194edfa5f210e93c12aba401159e12e2938f Mon Sep 17 00:00:00 2001 From: Simmo Saan Date: Sat, 8 Feb 2025 11:43:11 +0200 Subject: [PATCH] MDL-65233 course: add reset time shift test with non-midnight hour --- course/tests/courselib_test.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/course/tests/courselib_test.php b/course/tests/courselib_test.php index ff23474aa12..52674de7033 100644 --- a/course/tests/courselib_test.php +++ b/course/tests/courselib_test.php @@ -3697,7 +3697,16 @@ final class courselib_test extends advanced_testcase { $time + YEARSECS, $time + WEEKSECS, $time + YEARSECS - ] + ], + // Time shift is between exact times, not midnight(s) (MDL-65233). + [ + $time + HOURSECS, + $time + DAYSECS, + $time + WEEKSECS + HOURSECS, + false, + $time + WEEKSECS + HOURSECS, + $time + WEEKSECS + DAYSECS, + ], ]; }