mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-06-19 05:38:19 +02:00
issue #405: fix unit test failure
This commit is contained in:
committed by
Brendan Heywood
parent
54eca9e3a1
commit
dbc8e75092
@@ -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']);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = "auth_outage";
|
||||
$plugin->version = 2026011302; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->release = 2026011302; // Human-readable release information.
|
||||
$plugin->version = 2026011303; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->release = 2026011303; // Human-readable release information.
|
||||
$plugin->requires = 2025100600; // Moodle 5.1.
|
||||
$plugin->maturity = MATURITY_STABLE; // Suitable for PRODUCTION environments!
|
||||
$plugin->supported = [501, 501]; // A range of branch numbers of supported moodle versions.
|
||||
|
||||
Reference in New Issue
Block a user