From 3023a2b1fd9f8ec667cbf793fdfdf5a8211a149f Mon Sep 17 00:00:00 2001 From: ferran Date: Fri, 5 Sep 2025 15:39:38 +0200 Subject: [PATCH] MDL-86273 core_courseformat: fix overview phpunit test --- .../format/tests/external/get_overview_information_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/course/format/tests/external/get_overview_information_test.php b/public/course/format/tests/external/get_overview_information_test.php index 47efc4d1860..8fa15a306ad 100644 --- a/public/course/format/tests/external/get_overview_information_test.php +++ b/public/course/format/tests/external/get_overview_information_test.php @@ -35,7 +35,8 @@ final class get_overview_information_test extends \core_external\tests\externall $course = $this->getDataGenerator()->create_course(); $context = \core\context\course::instance($course->id); - $clock = $this->mock_clock_with_frozen(); + // 26 February 2025 15:59:59 (GMT). + $clock = $this->mock_clock_with_frozen(1740585599); $end = $clock->time() + DAYSECS; $mod1 = $this->getDataGenerator()->create_module('assign', ['course' => $course->id, 'duedate' => $end]); $mod2 = $this->getDataGenerator()->create_module('assign', ['course' => $course->id]);