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.

Class: behat_block_site_main_menu  - X-Ref

Behat steps definitions for block site main menu

get_site_menu_activity_node($activityname)   X-Ref
Returns the DOM node of the activity in the site menu block

param: string $activityname The activity name
return: NodeElement

activity_in_site_main_menu_block_should_have_editing_icon($activityname, $iconname)   X-Ref
Checks that the specified activity's action menu contains an item.

param: string $activityname
param: string $iconname

activity_in_site_main_menu_block_should_not_have_editing_icon($activityname, $iconname)   X-Ref
Checks that the specified activity's action menu contains an item.

param: string $activityname
param: string $iconname

i_click_on_in_the_activity_in_site_main_menu_block($element, $selectortype, $activityname)   X-Ref
Clicks on the specified element of the activity. You should be in the course page with editing mode turned on.

param: string $element
param: string $selectortype
param: string $activityname

get_site_menu_activity_element($element, $selectortype, $activityname)   X-Ref
Clicks on the specified element inside the activity container.

param: string $element
param: string $selectortype
param: string $activityname
return: NodeElement

activity_in_site_main_menu_block_should_be_hidden($activityname)   X-Ref
Checks that the specified activity is hidden.

param: string $activityname

activity_in_site_main_menu_block_should_be_available_but_hidden_from_course_page($activityname)   X-Ref
Checks that the specified activity is hidden.

param: string $activityname

i_open_actions_menu_in_site_main_menu_block($activityname)   X-Ref
Opens an activity actions menu if it is not already opened.

param: string $activityname

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

return: array