Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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