Set CFG->svgicons to true on info page #194.

This commit is contained in:
Mikhail Golenkov
2020-04-08 16:49:47 +10:00
parent 981452ac27
commit bf242d9e65
2 changed files with 15 additions and 0 deletions

View File

@@ -106,4 +106,14 @@ class infopagecontroller_test extends auth_outage_base_testcase {
$output = $info->get_output();
self::assertContains('auth_outage_info', $output);
}
/**
* Tests the constructor enables SVG support.
*/
public function test_svgicons_is_true() {
global $CFG;
$CFG->svgicons = false;
new infopage();
self::assertTrue($CFG->svgicons);
}
}