Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Class: behat_calendar  - X-Ref

Contains functions used by behat to test functionality.

get_partial_named_selectors()   X-Ref
Return the list of partial named selectors.

return: array

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_hover_over_day_of_this_month_in_mini_calendar_block(int $day)   X-Ref
Hover over a specific day in the mini-calendar.

param: int $day The day of the current month

i_hover_over_day_of_this_month_in_full_calendar_page(int $day)   X-Ref
Hover over a specific day in the full calendar page.

param: int $day The day of the current month

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


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