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

« back to all changes in this revision

Viewing changes to message/tests/behat/behat_message.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:
63
63
        $steps[] = new Given('I am on homepage');
64
64
 
65
65
        if ($this->running_javascript()) {
66
 
            $steps[] = new Given('I expand "My profile" node');
 
66
            $steps[] = new Given('I expand "' . get_string('myprofile') . '" node');
67
67
        }
68
68
 
69
 
        $steps[] = new Given('I follow "Messages"');
70
 
        $steps[] = new Given('I fill in "' . get_string('searchcombined', 'message') . '" with "' . $tofullname . '"');
 
69
        $steps[] = new Given('I follow "' . get_string('messages', 'message') . '"');
 
70
        $steps[] = new Given('I fill in "' . get_string('searchcombined', 'message') . '" with "' . $this->escape($tofullname) . '"');
71
71
        $steps[] = new Given('I press "' . get_string('searchcombined', 'message') . '"');
72
 
        $steps[] = new Given('I follow "' . get_string('sendmessageto', 'message', $tofullname) . '"');
73
 
        $steps[] = new Given('I fill in "id_message" with "' . $messagecontent . '"');
 
72
        $steps[] = new Given('I follow "' . $this->escape(get_string('sendmessageto', 'message', $tofullname)) . '"');
 
73
        $steps[] = new Given('I fill in "id_message" with "' . $this->escape($messagecontent) . '"');
74
74
        $steps[] = new Given('I press "' . get_string('sendmessage', 'message') . '"');
75
75
 
76
76
        return $steps;