Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]
Unit tests for lib/navigationlib.php
Copyright: | 2009 Sam Hemelryk |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later (5) |
File Size: | 656 lines (27 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_navigationlib_testcase:: (29 methods):
setup_node()
test_node__construct()
test_node_add()
test_node_add_before()
test_node_add_class()
test_node_check_if_active()
test_node_contains_active_node()
test_node_find_active_node()
test_node_find()
test_node_find_expandable()
test_node_get()
test_node_get_css_type()
test_node_make_active()
test_node_remove()
test_node_remove_class()
test_module_extends_navigation()
test_navbar_prepend_and_add()
test_navbar_has_items()
test_cache__get()
test_cache__set()
test_cache_cached()
test_cache_clear()
test_cache_set()
test_setting___construct()
test_setting__initialise()
test_can_view_user_preferences()
test_setting_in_alternative_role()
test_navigation_node_collection_remove_with_no_type()
test_navigation_node_collection_remove_with_type()
exposed_global_navigation:: (3 methods):
__construct()
__call()
set_initialised()
mock_initialise_global_navigation:: (4 methods):
load_for_category()
load_for_course()
load_for_activity()
load_for_user()
exposed_navbar:: (2 methods):
__construct()
__call()
navigation_exposed_moodle_page:: (1 method):
set_navigation()
exposed_settings_navigation:: (2 methods):
__construct()
__call()
Class: core_navigationlib_testcase - X-Ref
setup_node() X-Ref |
test_node__construct() X-Ref |
No description |
test_node_add() X-Ref |
No description |
test_node_add_before() X-Ref |
No description |
test_node_add_class() X-Ref |
No description |
test_node_check_if_active() X-Ref |
No description |
test_node_contains_active_node() X-Ref |
No description |
test_node_find_active_node() X-Ref |
No description |
test_node_find() X-Ref |
No description |
test_node_find_expandable() X-Ref |
No description |
test_node_get() X-Ref |
No description |
test_node_get_css_type() X-Ref |
No description |
test_node_make_active() X-Ref |
No description |
test_node_remove() X-Ref |
No description |
test_node_remove_class() X-Ref |
No description |
test_module_extends_navigation() X-Ref |
No description |
test_navbar_prepend_and_add() X-Ref |
No description |
test_navbar_has_items(moodle_page $page) X-Ref |
param: $node |
test_cache__get() X-Ref |
No description |
test_cache__set() X-Ref |
No description |
test_cache_cached() X-Ref |
No description |
test_cache_clear() X-Ref |
No description |
test_cache_set() X-Ref |
No description |
test_setting___construct() X-Ref |
No description |
test_setting__initialise($node) X-Ref |
param: mixed $node return: mixed |
test_can_view_user_preferences() X-Ref |
Test that users with the correct permissions can view the preferences page. |
test_setting_in_alternative_role($node) X-Ref |
param: mixed $node return: mixed |
test_navigation_node_collection_remove_with_no_type() X-Ref |
No description |
test_navigation_node_collection_remove_with_type() X-Ref |
No description |
Class: exposed_global_navigation - X-Ref
This is a dummy object that allows us to call protected methods within the__construct(moodle_page $page=null) X-Ref |
No description |
__call($method, $arguments) X-Ref |
No description |
set_initialised() X-Ref |
No description |
Class: mock_initialise_global_navigation - X-Ref
load_for_category() X-Ref |
No description |
load_for_course() X-Ref |
No description |
load_for_activity() X-Ref |
No description |
load_for_user($user=null, $forceforcontext=false) X-Ref |
No description |
Class: exposed_navbar - X-Ref
This is a dummy object that allows us to call protected methods within the__construct(moodle_page $page) X-Ref |
No description |
__call($method, $arguments) X-Ref |
No description |
Class: navigation_exposed_moodle_page - X-Ref
set_navigation(navigation_node $node) X-Ref |
No description |
Class: exposed_settings_navigation - X-Ref
This is a dummy object that allows us to call protected methods within the