|
| getSession ($name=null) |
| Returns the Mink session.
|
|
| i_add_enrolment_method_for_with (string $enrolmethod, string $courseidentifier, TableNode $table) |
| Add the specified enrolment method to the specified course filling the form with the provided data.
|
|
| i_enrol_user_as ($userfullname, $rolename) |
| Enrols the specified user in the current course without options.
|
|
◆ getSession()
behat_session_interface::getSession |
( |
|
$name = null | ) |
|
|
inherited |
Returns the Mink session.
- Parameters
-
string | null | $name | name of the session OR active session will be used |
- Return values
-
Implemented in behat_form_field.
◆ i_add_enrolment_method_for_with()
behat_enrol::i_add_enrolment_method_for_with |
( |
string |
$enrolmethod, |
|
|
string |
$courseidentifier, |
|
|
TableNode |
$table |
|
) |
| |
Add the specified enrolment method to the specified course filling the form with the provided data.
@Given /^I add "(?P<enrolment_method_name_string>(?:[^"]|::")*)" enrolment method in "(?P<course_identifier_string>(?:[^"]|")*)" with:$/
- Parameters
-
string | $enrolmethod | The enrolment method being used |
string | $courseidentifier | The courseidentifier such as short name |
TableNode | $table | Enrolment details |
◆ i_enrol_user_as()
behat_enrol::i_enrol_user_as |
( |
|
$userfullname, |
|
|
|
$rolename |
|
) |
| |
Enrols the specified user in the current course without options.
This is a simple step, to set enrolment options would be better to create a separate step as a TableNode will be required.
@Given /^I enrol "(?P<user_fullname_string>(?:[^"]|::")*)" user as "(?P<rolename_string>(?:[^"]|")*)"$/
- Parameters
-
string | $userfullname | |
string | $rolename | |
◆ PAGE_READY_JS
const behat_session_interface::PAGE_READY_JS |
|
inherited |
Initial value:= "document.readyState === 'complete' && " .
"(typeof M !== 'object' || typeof M.util !== 'object' || " .
"typeof M.util.pending_js === 'undefined' || M.util.pending_js.length === 0)"
The JS code to check that the page is ready.
The document must be complete and either M.util.pending_js must be empty, or it must not be defined at all.
The documentation for this class was generated from the following file: