See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]
Tests for the block_manager class in ../blocklib.php.
Copyright: | 2009 Tim Hunt |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 866 lines (36 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_blocklib_testcase:: (36 methods):
setUp()
tearDown()
purge_blocks()
get_last_created_block()
test_no_regions_initially()
test_add_region()
test_add_regions()
test_add_region_twice()
test_cannot_add_region_after_loaded()
test_add_custom_region()
test_add_custom_regions()
test_add_custom_region_twice()
test_cannot_add_custom_region_after_loaded()
test_set_default_region()
test_cannot_set_unknown_region_as_default()
test_cannot_change_default_region_after_loaded()
test_matching_page_type_patterns()
get_a_page_and_block_manager()
get_a_known_block_type()
assertContainsBlocksOfType()
test_empty_initially()
test_adding_and_retrieving_one_block()
test_adding_and_retrieving_two_blocks()
test_adding_blocks()
test_block_instances()
test_block_not_included_in_different_context()
test_block_included_in_sub_context()
test_block_not_included_on_different_page_type()
test_block_not_included_on_different_sub_page()
test_block_included_with_explicit_sub_page()
test_block_included_with_page_type_pattern()
test_matching_page_type_patterns_from_pattern()
test_delete_instances()
test_create_all_block_instances()
test_block_instance_times()
test_default_dashboard()
testable_block_manager:: (3 methods):
reset_caches()
mark_loaded()
get_loaded_blocks()
block_ablocktype:: (1 method):
init()
Class: core_blocklib_testcase - X-Ref
Test various block related classes.setUp() X-Ref |
No description |
tearDown() X-Ref |
No description |
purge_blocks() X-Ref |
No description |
get_last_created_block() X-Ref |
Gets the last block created. return: stdClass a record from block_instances |
test_no_regions_initially() X-Ref |
No description |
test_add_region() X-Ref |
No description |
test_add_regions() X-Ref |
No description |
test_add_region_twice() X-Ref |
No description |
test_cannot_add_region_after_loaded() X-Ref |
test_add_custom_region() X-Ref |
Testing adding a custom region. |
test_add_custom_regions() X-Ref |
Test adding two custom regions using add_regions method. |
test_add_custom_region_twice() X-Ref |
Test adding two custom block regions. |
test_cannot_add_custom_region_after_loaded() X-Ref |
Test to ensure that we cannot add a region after the blocks have been loaded. |
test_set_default_region() X-Ref |
No description |
test_cannot_set_unknown_region_as_default() X-Ref |
test_cannot_change_default_region_after_loaded() X-Ref |
test_matching_page_type_patterns() X-Ref |
No description |
get_a_page_and_block_manager($regions, $context, $pagetype, $subpage = '') X-Ref |
No description |
get_a_known_block_type() X-Ref |
No description |
assertContainsBlocksOfType($typearray, $blockarray) X-Ref |
No description |
test_empty_initially() X-Ref |
No description |
test_adding_and_retrieving_one_block() X-Ref |
No description |
test_adding_and_retrieving_two_blocks() X-Ref |
No description |
test_adding_blocks() X-Ref |
No description |
test_block_instances() X-Ref |
Test block instances. return: null |
test_block_not_included_in_different_context() X-Ref |
No description |
test_block_included_in_sub_context() X-Ref |
No description |
test_block_not_included_on_different_page_type() X-Ref |
No description |
test_block_not_included_on_different_sub_page() X-Ref |
No description |
test_block_included_with_explicit_sub_page() X-Ref |
No description |
test_block_included_with_page_type_pattern() X-Ref |
No description |
test_matching_page_type_patterns_from_pattern() X-Ref |
No description |
test_delete_instances() X-Ref |
No description |
test_create_all_block_instances() X-Ref |
No description |
test_block_instance_times() X-Ref |
Test the block instance time fields (timecreated, timemodified). |
test_default_dashboard() X-Ref |
Tests that dashboard pages get their blocks loaded correctly. |
Class: testable_block_manager - X-Ref
Test-specific subclass to make some protected things public.reset_caches() X-Ref |
Resets the caches in the block manager. This allows blocks to be reloaded correctly. |
mark_loaded() X-Ref |
No description |
get_loaded_blocks() X-Ref |
No description |