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

« back to all changes in this revision

Viewing changes to auth/tests/behat/behat_auth.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:
49
49
    public function i_log_in_as($username) {
50
50
 
51
51
        return array(new Given('I am on homepage'),
52
 
            new Given('I follow "Login"'),
53
 
            new Given('I fill in "Username" with "'.$username.'"'),
54
 
            new Given('I fill in "Password" with "'.$username.'"'),
55
 
            new Given('I press "Login"')
 
52
            new Given('I follow "' . get_string('login') . '"'),
 
53
            new Given('I fill in "' . get_string('username') . '" with "' . $this->escape($username) . '"'),
 
54
            new Given('I fill in "' . get_string('password') . '" with "'. $this->escape($username) . '"'),
 
55
            new Given('I press "' . get_string('login') . '"')
56
56
        );
57
57
    }
58
58
 
62
62
     * @Given /^I log out$/
63
63
     */
64
64
    public function i_log_out() {
65
 
        return new When('I follow "Logout"');
 
65
        return new When('I follow "' . get_string('logout') . '"');
66
66
    }
67
67
 
68
68
}