[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/auth/tests/behat/ -> behat_auth.php (summary)

Basic authentication steps definitions.

Copyright: 2012 David Monllaó
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 135 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class

behat_auth:: (3 methods):
  i_log_in_as()
  i_log_out()
  get_expand_navbar_step()


Class: behat_auth  - X-Ref

Log in log out steps definitions.

i_log_in_as($username)   X-Ref
Logs in the user. There should exist a user with the same value as username and password.


i_log_out()   X-Ref
Logs out of the system.


get_expand_navbar_step()   X-Ref
Returns a step to open the navigation bar if it is needed.

The top log in and log out links are hidden when middle or small
size windows (or devices) are used. This step returns a step definition
clicking to expand the navbar if it is hidden.

return: Given|bool A step definition or false if there is no need to show the navbar.



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1