MDL-22955 output: Forced SVG use in unit tests for pix to fix unit test fails
authorSam Hemelryk <sam@moodle.com>
Wed, 10 Oct 2012 06:14:34 +0000 (14:14 +0800)
committerSam Hemelryk <sam@moodle.com>
Wed, 10 Oct 2012 06:14:50 +0000 (14:14 +0800)
lib/tests/outputcomponents_test.php

index d5d50bf..c3b796b 100644 (file)
@@ -118,6 +118,9 @@ class user_picture_testcase extends advanced_testcase {
 
         $this->resetAfterTest();
 
+        // Force SVG on so that we have predictable URL's.
+        $CFG->svgicons = true;
+
         // verify new install contains expected defaults
         $this->assertEquals('standard', $CFG->theme);
         $this->assertEquals(1, $CFG->slasharguments);