[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/completion/tests/behat/ -> behat_completion.php (summary)

Completion steps definitions.

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

Defines 1 class

behat_completion:: (6 methods):
  user_has_completed_activity()
  user_has_not_completed_activity()
  go_to_the_current_course_activity_completion_report()
  completion_is_toggled_in_course()
  activity_marked_as_complete()
  activity_marked_as_not_complete()


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.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1