Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

File Size: 103 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/tests/behat/behat_navigation.php

Defines 1 class


Class: behat_theme_boost_behat_navigation  - X-Ref

Step definitions related to the navigation in the Boost theme.

i_should_see_is_active_in_navigation($element)   X-Ref
Checks whether a node is active in the navbar.

param: string      $element The name of the nav elemnent to look for.
return: void

i_should_see_is_active_in_secondary_navigation($element)   X-Ref
Checks whether a node is active in the secondary nav.

param: string      $element The name of the nav elemnent to look for.
return: void

lang_menu_should_exist($not = null)   X-Ref
Checks whether the language selector menu is present in the navbar.

param: string|null $not Instructs to checks whether the element does not exist in the user menu, if defined
return: void

should_exist_in_lang_menu($itemtext, $selectortype, $not = null)   X-Ref
Checks whether an item exists in the language selector menu.

param: string $itemtext The menu item to find
param: string $selectortype The selector type
param: string|null $not Instructs to checks whether the element does not exist in the user menu, if defined
return: void

get_lang_menu_xpath()   X-Ref
Return the xpath for the language selector menu element.

return: string The xpath