mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
chore: ci Fixes
This commit is contained in:
@@ -160,7 +160,7 @@ final class waitforit_test extends cli_testcase {
|
||||
/**
|
||||
* Tests the countdown.
|
||||
*/
|
||||
public function test_countdown() {
|
||||
public function test_countdown(): void {
|
||||
self::setAdminUser();
|
||||
$now = time();
|
||||
outagedb::save(new outage([
|
||||
@@ -189,7 +189,7 @@ final class waitforit_test extends cli_testcase {
|
||||
/**
|
||||
* Tests if the outage changed while waiting.
|
||||
*/
|
||||
public function test_outagechanged() {
|
||||
public function test_outagechanged(): void {
|
||||
self::setAdminUser();
|
||||
$now = time();
|
||||
$id = outagedb::save(new outage([
|
||||
|
||||
@@ -583,7 +583,7 @@ final class maintenance_static_page_test extends \auth_outage\base_testcase {
|
||||
/**
|
||||
* Test meta refresh maximum 5 minutes.
|
||||
*/
|
||||
public function test_meta_refresh_maximum_5seconds() {
|
||||
public function test_meta_refresh_maximum_5seconds(): void {
|
||||
$this->resetAfterTest(true);
|
||||
$html = "<!DOCTYPE html>\n" .
|
||||
'<html><head><title>Title</title></head>' .
|
||||
@@ -593,7 +593,6 @@ final class maintenance_static_page_test extends \auth_outage\base_testcase {
|
||||
$page->set_max_refresh_time(5);
|
||||
$page->generate();
|
||||
$generated = trim(file_get_contents($page->get_io()->get_template_file()));
|
||||
return $generated;
|
||||
|
||||
self::assertStringContainsString('<meta http-equiv="refresh" content="5">', $generated);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user