Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
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.