Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Completion steps definitions.

Copyright: 2013 David MonllaĆ³
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 223 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_completion  - X-Ref

Steps definitions to deal with course and activities completion.

user_has_completed_activity($userfullname, $activityname)   X-Ref
Checks that the specified user has completed the specified activity of the current course.

param: string $userfullname
param: string $activityname

user_has_not_completed_activity($userfullname, $activityname)   X-Ref
Checks that the specified user has not completed the specified activity of the current course.

param: string $userfullname
param: string $activityname

go_to_the_current_course_activity_completion_report()   X-Ref
Goes to the current course activity completion report.


completion_is_toggled_in_course($completionstatus)   X-Ref
Toggles completion tracking for course being in the course page.

param: string $completionstatus The status, enabled or disabled.

activity_marked_as_complete($activityname, $activitytype, $completiontype)   X-Ref
Checks if the activity with specified name is maked as complete.


activity_marked_as_not_complete($activityname, $activitytype, $completiontype)   X-Ref
Checks if the activity with specified name is maked as complete.


activity_has_configuration_completion_checkbox($activityname, $activitytype, $completiontype)   X-Ref
Checks if the activity with specified name shows a information completion checkbox (i.e. showing the completion tracking
configuration).

param: string $activityname The activity name.
param: string $activitytype The activity type.
param: string $completiontype The completion type.

activity_has_status_completion_checkbox($activityname, $activitytype, $completiontype)   X-Ref
Checks if the activity with specified name shows a tracking completion checkbox (i.e. showing my completion tracking status)

param: string $activityname The activity name.
param: string $activitytype The activity type.
param: string $completiontype The completion type.

activity_has_not_any_completion_checkbox($activityname, $activitytype)   X-Ref
Checks if the activity with specified name does not show any completion checkbox.

param: string $activityname The activity name.
param: string $activitytype The activity type.