Issue #46 and #53 - Improve test assertion for static info page. Added more screenshots and updated the README.

This commit is contained in:
Daniel Thee Roperto
2016-09-28 12:48:52 +10:00
parent e09ae44f2f
commit 71ed416f45
5 changed files with 48 additions and 10 deletions

View File

@@ -92,7 +92,7 @@ class infopagecontroller_test extends advanced_testcase {
$html = $info->get_output();
// Must find...
self::assertContains('<!DOCTYPE html>', $html);
self::assertContains('<meta http-equiv="refresh" content="'.$outage->get_duration_planned().'">', $html); // Issue #53.
self::assertContains('<meta http-equiv="refresh" content="'.(60 * 60).'">', $html); // Issue #53.
self::assertContains('</html>', $html);
self::assertContains($outage->get_title(), $html);
self::assertContains($outage->get_description(), $html);