| Moodle APIs 4.3
    Moodle 4.3.6 (Build: 20240812) | 
Enrolment steps definitions. More...
| Public Member Functions | |
| 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. | |
| Public Attributes | |
| const | PAGE_READY_JS | 
| The JS code to check that the page is ready. | |
Enrolment steps definitions.
| 
 | inherited | 
Returns the Mink session.
| string | null | $name | name of the session OR active session will be used | 
| Behat\Mink\Session | 
Implemented in behat_form_field.
| 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:$/
| string | $enrolmethod | The enrolment method being used | 
| string | $courseidentifier | The courseidentifier such as short name | 
| TableNode | $table | Enrolment details | 
| 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>(?:[^"]|")*)"$/
| string | $userfullname | |
| string | $rolename | 
| 
 | inherited | 
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.