From 20fef09b036bdd7d8d19d2158e9c6ae2a28ac7a2 Mon Sep 17 00:00:00 2001 From: Tomo Tsuyuki Date: Wed, 17 Jun 2026 16:19:35 +1000 Subject: [PATCH] issue #405: fix unit test failure --- tests/local/controllers/maintenance_static_page_test.php | 4 ++-- version.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/local/controllers/maintenance_static_page_test.php b/tests/local/controllers/maintenance_static_page_test.php index 3155db3..f6a6384 100644 --- a/tests/local/controllers/maintenance_static_page_test.php +++ b/tests/local/controllers/maintenance_static_page_test.php @@ -459,8 +459,8 @@ final class maintenance_static_page_test extends \auth_outage\base_testcase { // Test file_get_data does return the page and isn't blocked by security. $found = maintenance_static_page_io::file_get_data($url->out()); - $expected = '47250a973d1b88d9445f94db4ef2c97a'; - self::assertSame($expected, md5($found['contents'])); + $expected = 'Moodle is a software package for producing internet-based courses and web sites.'; + self::assertStringContainsString($expected, $found['contents']); self::assertSame('text/html', $found['mime']); } diff --git a/version.php b/version.php index 665bd72..d2e07eb 100644 --- a/version.php +++ b/version.php @@ -28,8 +28,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = "auth_outage"; -$plugin->version = 2024081903; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = 2024081903; // Human-readable release information. +$plugin->version = 2024081904; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = 2024081904; // Human-readable release information. $plugin->requires = 2017111309; // 2017111309 = T13, but this really requires 3.9 and higher. $plugin->maturity = MATURITY_STABLE; // Suitable for PRODUCTION environments! $plugin->supported = [39, 405]; // A range of branch numbers of supported moodle versions.