~ubuntu-branches/ubuntu/saucy/moodle/saucy

« back to all changes in this revision

Viewing changes to question/engine/tests/helpers.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.17) (3.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20130909152235-f5g7gphaseb84qeu
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
824
824
                'Looking for a hidden input with attributes ' . html_writer::attributes($attributes) . ' in ' . $this->currentoutput);
825
825
    }
826
826
 
 
827
    protected function check_output_contains_lang_string($identifier, $component = '', $a = null) {
 
828
        $this->render();
 
829
        $string = get_string($identifier, $component, $a);
 
830
        $this->assertContains($string, $this->currentoutput,
 
831
                'Expected string ' . $string . ' not found in ' . $this->currentoutput);
 
832
    }
 
833
 
827
834
    protected function get_tag_matcher($tag, $attributes) {
828
835
        return array(
829
836
            'tag' => $tag,