X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=question%2Fengine%2Ftests%2Fhelpers.php;h=303746beff389c79d2b1344c5f1f44b4dd85557e;hp=7d4ce01c97b60488f9baecdd1ee8ced21eeea284;hb=87934924be2b35383982bcfaf41e4e566564de69;hpb=1d92024f99f999d98932c26239b49494706c021e diff --git a/question/engine/tests/helpers.php b/question/engine/tests/helpers.php index 7d4ce01c97b..303746beff3 100644 --- a/question/engine/tests/helpers.php +++ b/question/engine/tests/helpers.php @@ -848,6 +848,13 @@ abstract class qbehaviour_walkthrough_test_base extends question_testcase { 'Looking for a hidden input with attributes ' . html_writer::attributes($attributes) . ' in ' . $this->currentoutput); } + protected function check_output_contains_lang_string($identifier, $component = '', $a = null) { + $this->render(); + $string = get_string($identifier, $component, $a); + $this->assertContains($string, $this->currentoutput, + 'Expected string ' . $string . ' not found in ' . $this->currentoutput); + } + protected function get_tag_matcher($tag, $attributes) { return array( 'tag' => $tag,