Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Public Member Functions | |
activity_has_configuration_completion_checkbox ($activityname, $activitytype, $completiontype) | |
Checks if the activity with specified name shows a information completion checkbox (i.e. More... | |
activity_has_not_any_completion_checkbox ($activityname, $activitytype) | |
Checks if the activity with specified name does not show any completion checkbox. More... | |
activity_has_status_completion_checkbox ($activityname, $activitytype, $completiontype) | |
Checks if the activity with specified name shows a tracking completion checkbox (i.e. More... | |
activity_marked_as_complete ($activityname, $activitytype, $completiontype) | |
Checks if the activity with specified name is maked as complete. More... | |
activity_marked_as_not_complete ($activityname, $activitytype, $completiontype) | |
Checks if the activity with specified name is maked as complete. More... | |
completion_is_toggled_in_course ($completionstatus) | |
Toggles completion tracking for course being in the course page. More... | |
getSession ($name=null) | |
Returns the Mink session. More... | |
go_to_the_current_course_activity_completion_report () | |
Goes to the current course activity completion report. More... | |
user_has_completed_activity ($userfullname, $activityname) | |
Checks that the specified user has completed the specified activity of the current course. More... | |
user_has_not_completed_activity ($userfullname, $activityname) | |
Checks that the specified user has not completed the specified activity of the current course. More... | |
Public Attributes | |
const | EXTENDED_TIMEOUT = 10 |
And extended timeout for specific cases. More... | |
const | PAGE_READY_JS |
The JS code to check that the page is ready. More... | |
const | REDUCED_TIMEOUT = 2 |
Small timeout. More... | |
const | TIMEOUT = 6 |
The timeout for each Behat step (load page, wait for an element to load...). More... | |
behat_completion::activity_has_configuration_completion_checkbox | ( | $activityname, | |
$activitytype, | |||
$completiontype | |||
) |
Checks if the activity with specified name shows a information completion checkbox (i.e.
showing the completion tracking configuration).
@Given /^the "(?P<activityname_string>(?:[^"]|::")*)" "(?P<activitytype_string>(?:[^"]|")*)" activity with "(manual|auto)" completion shows a configuration completion checkbox/
string | $activityname | The activity name. |
string | $activitytype | The activity type. |
string | $completiontype | The completion type. |
behat_completion::activity_has_not_any_completion_checkbox | ( | $activityname, | |
$activitytype | |||
) |
Checks if the activity with specified name does not show any completion checkbox.
@Given /^the "(?P<activityname_string>(?:[^"]|::")*)" "(?P<activitytype_string>(?:[^"]|")*)" activity does not show any completion checkbox/
string | $activityname | The activity name. |
string | $activitytype | The activity type. |
behat_completion::activity_has_status_completion_checkbox | ( | $activityname, | |
$activitytype, | |||
$completiontype | |||
) |
Checks if the activity with specified name shows a tracking completion checkbox (i.e.
showing my completion tracking status)
@Given /^the "(?P<activityname_string>(?:[^"]|::")*)" "(?P<activitytype_string>(?:[^"]|")*)" activity with "(manual|auto)" completion shows a status completion checkbox/
string | $activityname | The activity name. |
string | $activitytype | The activity type. |
string | $completiontype | The completion type. |
behat_completion::activity_marked_as_complete | ( | $activityname, | |
$activitytype, | |||
$completiontype | |||
) |
Checks if the activity with specified name is maked as complete.
@Given /^the "(?P<activityname_string>(?:[^"]|::")*)" "(?P<activitytype_string>(?:[^"]|")*)" activity with "(manual|auto)" completion should be marked as complete$/
behat_completion::activity_marked_as_not_complete | ( | $activityname, | |
$activitytype, | |||
$completiontype | |||
) |
Checks if the activity with specified name is maked as complete.
@Given /^the "(?P<activityname_string>(?:[^"]|::")*)" "(?P<activitytype_string>(?:[^"]|")*)" activity with "(manual|auto)" completion should be marked as not complete$/
behat_completion::completion_is_toggled_in_course | ( | $completionstatus | ) |
Toggles completion tracking for course being in the course page.
@When /^completion tracking is "(?P<completion_status_string>Enabled|Disabled)" in current course$/
string | $completionstatus | The status, enabled or disabled. |
|
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_completion::go_to_the_current_course_activity_completion_report | ( | ) |
Goes to the current course activity completion report.
@Given /^I go to the current course activity completion report$/
behat_completion::user_has_completed_activity | ( | $userfullname, | |
$activityname | |||
) |
Checks that the specified user has completed the specified activity of the current course.
@Then /^"(?P<user_fullname_string>(?:[^"]|::")*)" user has completed "(?P<activity_name_string>(?:[^"]|")*)" activity$/
string | $userfullname | |
string | $activityname |
behat_completion::user_has_not_completed_activity | ( | $userfullname, | |
$activityname | |||
) |
Checks that the specified user has not completed the specified activity of the current course.
@Then /^"(?P<user_fullname_string>(?:[^"]|::")*)" user has not completed "(?P<activity_name_string>(?:[^"]|")*)" activity$/
string | $userfullname | |
string | $activityname |
|
inherited |
And extended timeout for specific cases.
|
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.
|
inherited |
Small timeout.
A reduced timeout for cases where self::TIMEOUT is too much and a simple $this->getSession()->getPage()->find() could not be enough.
|
inherited |
The timeout for each Behat step (load page, wait for an element to load...).