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.

(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.

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

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

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

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

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

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

return: void
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

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

return: string The xpath