MDL-41615 question: fix unit tests
authorDan Poltawski <dan@moodle.com>
Thu, 7 Nov 2013 10:10:55 +0000 (18:10 +0800)
committerDan Poltawski <dan@moodle.com>
Thu, 7 Nov 2013 10:10:55 +0000 (18:10 +0800)
Heading levels have been changed.

question/type/description/tests/walkthrough_test.php
question/type/truefalse/tests/walkthrough_test.php

index 035bc3e..1fb0c07 100644 (file)
@@ -44,7 +44,7 @@ class qtype_description_walkthrough_test extends qbehaviour_walkthrough_test_bas
                 $this->quba->get_question_attempt($this->slot)->get_behaviour_name());
 
         $this->check_current_output(
-                new question_contains_tag_with_contents('h3', get_string('informationtext', 'qtype_description'))
+                new question_contains_tag_with_contents('h4', get_string('informationtext', 'qtype_description'))
         );
 
         // Further tests of the description qtype are in
index 0a63ad7..b940dd2 100644 (file)
@@ -50,7 +50,7 @@ class qtype_truefalse_walkthrough_test extends qbehaviour_walkthrough_test_base
         $this->check_current_output(
                 $this->get_contains_question_text_expectation($tf),
                 $this->get_does_not_contain_feedback_expectation(),
-                new question_contains_tag_with_contents('h3',
+                new question_contains_tag_with_contents('h4',
                         get_string('questiontext', 'question')));
         $this->assertEquals(get_string('false', 'qtype_truefalse'),
                 $this->quba->get_right_answer_summary($this->slot));