| [ Index ] |
PHP Cross Reference of Moodle 310 |
[Source view] [Print] [Project Stats]
Helper to get behat contexts from other contexts.
| Copyright: | 2014 David Monllaó |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 165 lines (5 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
behat_context_helper:: (7 methods):
set_session()
set_environment()
get()
get_component_context()
get_theme_override()
has_context()
escape()
Class: behat_context_helper - X-Ref
Helper to get behat contexts.| set_session(Environment $environment) X-Ref |
| Sets the browser session. param: Environment $environment return: void |
| set_environment(Environment $environment) X-Ref |
| Sets behat environment. param: Environment $environment return: void |
| get($classname) X-Ref |
| Gets the required context. Getting a context you get access to all the steps that uses direct API calls; steps returning step chains can not be executed like this. param: string $classname Context identifier (the class name). return: behat_base |
| get_component_context(string $component) X-Ref |
| Get the context for the specified component or subsystem. param: string $component The component or subsystem to find the context for return: behat_base|null |
| get_theme_override(string $classname) X-Ref |
| Check for any theme override of the specified class name. param: string $classname return: string|null |
| has_context(string $classname) X-Ref |
| Return whether there is a context of the specified classname. param: string $classname return: bool |
| escape($label) X-Ref |
| Translates string to XPath literal. param: string $label label to escape return: string escaped string. |
| Generated: Wed Jan 22 11:59:49 2025 | Cross-referenced by PHPXref 0.7.1 |