Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

Behat calendar-related steps definitions.

Copyright: 2013 Mark Nelson <markn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 185 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/behat/behat_base.php

Defines 1 class


Class: behat_calendar  - X-Ref

Contains functions used by behat to test functionality.

i_create_a_calendar_event_with_form_data($data)   X-Ref
Create event when starting on the front page.

param: TableNode $data

i_create_a_calendar_event($data)   X-Ref
Create event.

param: TableNode $data

i_click_day_of_this_month_in_calendar($day)   X-Ref
Click a specific day in the calendar.

param: int $day The day of the current month

i_hover_over_day_of_this_month_in_calendar($day)   X-Ref
Hover over a specific day in the calendar.

param: int $day The day of the current month

i_hover_over_today_in_the_calendar()   X-Ref
Hover over today in the calendar.


i_view_the_calendar_for($month, $year)   X-Ref
Navigate to a specific month in the calendar.

param: int $month the month selected as a number
param: int $year the four digit year

i_view_the_calendar_day_view(int $day, int $month, int $year)   X-Ref
Navigate to a specific date in the calendar.

param: int $day the day selected as a number
param: int $month the month selected as a number
param: int $year the four digit year

view_the_calendar(string $type, int $day, int $month, int $year)   X-Ref
View the correct calendar view with specific day

param: string $type type of calendar view: month or day
param: int $day the day selected as a number
param: int $month the month selected as a number
param: int $year the four digit year

i_am_viewing_site_calendar()   X-Ref
Navigate to site calendar.

return: void