[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Unit tests for the condition tree class and related logic.
Copyright: | 2014 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 760 lines (31 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files availability/tests/fixtures/mock_info.php availability/tests/fixtures/mock_condition.php |
tree_testcase:: (16 methods):
setUp()
test_construct_errors()
test_construct_ignore_missing_plugin()
test_construct_just_trees()
test_construct_with_mock_plugin()
test_check_available()
get_available_results()
test_is_available_for_all()
test_get_full_information()
test_is_empty()
test_get_all_children()
test_update_dependency_id()
test_filter_users()
test_get_json()
test_get_user_list_sql()
mock()
Class: tree_testcase - X-Ref
Unit tests for the condition tree class and related logic.setUp() X-Ref |
No description |
test_construct_errors() X-Ref |
Tests constructing a tree with errors. |
test_construct_ignore_missing_plugin() X-Ref |
Tests constructing a tree with plugin that does not exist (ignored). |
test_construct_just_trees() X-Ref |
Tests constructing a tree with subtrees using all available operators. |
test_construct_with_mock_plugin() X-Ref |
Tests constructing tree using the mock plugin. |
test_check_available() X-Ref |
Tests the check_available and get_result_information functions. |
get_available_results($structure, \core_availability\info $info, $userid) X-Ref |
Shortcut function to check availability and also get information. param: stdClass $structure Tree structure param: \core_availability\info $info Location info param: int $userid User id |
test_is_available_for_all() X-Ref |
Tests the is_available_for_all() function. |
test_get_full_information() X-Ref |
Tests the get_full_information() function. |
test_is_empty() X-Ref |
Tests the is_empty() function. |
test_get_all_children() X-Ref |
Tests the get_all_children() function. |
test_update_dependency_id() X-Ref |
Tests the update_dependency_id() function. |
test_filter_users() X-Ref |
Tests the filter_users function. |
test_get_json() X-Ref |
Tests the get_json methods in tree (which are mainly for use in testing but might be used elsewhere). |
test_get_user_list_sql() X-Ref |
Tests get_user_list_sql. |
mock(array $params) X-Ref |
Utility function to build the PHP structure representing a mock condition. param: array $params Mock parameters return: \stdClass Structure object |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |