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: 546 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: boostnavbar_test  - X-Ref

Test the boostnavbar file

remove_no_link_items_provider()   X-Ref
Provider for test_remove_no_link_items
The setup and expected arrays are defined as an array of 'nodekey' => $hasaction

return: array

test_remove_no_link_items(array $setup, bool $removesectionnodes, array $expected)   X-Ref
Test the remove_no_link_items function

param: array $setup
param: bool $removesectionnodes Whether to remove the section nodes with an associated action.
param: array $expected

remove_duplicate_items_provider()   X-Ref
Provider for test_remove_duplicate_items.

return: array

test_remove_duplicate_items(array $navbarnodes, array $expected)   X-Ref
Test the remove_duplicate_items function.

param: array $navbarnodes The array containing the text and action of the nodes to be added to the navbar
param: array $expected The array containing the text of the expected navbar nodes

remove_items_that_exist_in_navigation_provider()   X-Ref
Provider for test_remove_items_that_exist_in_navigation.

return: array

test_remove_items_that_exist_in_navigation(string $navmenu, array $navmenunodes, array $navbarnodes,array $expected)   X-Ref
Test the remove_items_that_exist_in_navigation function.

param: string $navmenu The name of the navigation menu we would like to use (primary or secondary)
param: array $navmenunodes The array containing the text and action of the nodes to be added to the navigation menu
param: array $navbarnodes Array containing the text => action of the nodes to be added to the navbar
param: array $expected Array containing the text of the expected navbar nodes after the filtering