Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Steps definitions for cohort actions. More...
Public Member Functions | |
getSession ($name=null) | |
Returns the Mink session. | |
i_add_user_to_cohort_members ($user, $cohortidnumber) | |
Adds the user to the specified cohort. | |
Public Attributes | |
const | PAGE_READY_JS |
The JS code to check that the page is ready. | |
Steps definitions for cohort actions.
|
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_cohort::i_add_user_to_cohort_members | ( | $user, | |
$cohortidnumber ) |
Adds the user to the specified cohort.
The user should be specified like "Firstname Lastname (user@example.com)".
@Given /^I add "(?P<user_fullname_string>(?:[^"]|::")*)" user to "(?P<cohort_idnumber_string>(?:[^"]|")*)" cohort members$/
string | $user | |
string | $cohortidnumber |
|
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.