MDL-47494 gapselect: NOBUG fixing unit tests related to change in default for hint...
authorJamie Pratt <me@jamiep.org>
Tue, 31 Jan 2012 08:32:13 +0000 (15:32 +0700)
committerJamie Pratt <me@jamiep.org>
Sat, 4 Feb 2012 11:20:45 +0000 (18:20 +0700)
question/type/gapselect/simpletest/testquestiontype.php

index 4b81229..c3e14ac 100755 (executable)
@@ -180,11 +180,11 @@ class qtype_gapselect_test extends UnitTestCase {
       <text>Gamma</text>
       <group>1</group>
     </selectoption>
       <text>Gamma</text>
       <group>1</group>
     </selectoption>
-    <hint>
+    <hint format="moodle_auto_format">
       <text>Try again.</text>
       <shownumcorrect />
     </hint>
       <text>Try again.</text>
       <shownumcorrect />
     </hint>
-    <hint>
+    <hint format="moodle_auto_format">
       <text>These are the first three letters of the Greek alphabet.</text>
       <shownumcorrect />
       <clearwrong />
       <text>These are the first three letters of the Greek alphabet.</text>
       <shownumcorrect />
       <clearwrong />
@@ -228,7 +228,6 @@ class qtype_gapselect_test extends UnitTestCase {
                         'format' => FORMAT_MOODLE, 'files' => array()));
         $expectedq->hintshownumcorrect = array(true, true);
         $expectedq->hintclearwrong = array(false, true);
                         'format' => FORMAT_MOODLE, 'files' => array()));
         $expectedq->hintshownumcorrect = array(true, true);
         $expectedq->hintclearwrong = array(false, true);
-
         $this->assert(new CheckSpecifiedFieldsExpectation($expectedq), $q);
         $this->assertEqual($expectedq->hint, $q->hint);
     }
         $this->assert(new CheckSpecifiedFieldsExpectation($expectedq), $q);
         $this->assertEqual($expectedq->hint, $q->hint);
     }