[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> filterlib_test.php (summary)

Tests for the parts of ../filterlib.php that involve loading the configuration from, and saving the configuration to, the database.

Copyright: 2009 Tim Hunt
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 678 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_filterlib_testcase:: (52 methods):
  setUp()
  assert_only_one_filter_globally()
  assert_global_sort_order()
  test_set_filter_globally_on()
  test_set_filter_globally_off()
  test_set_filter_globally_disabled()
  test_global_config_exception_on_invalid_state()
  test_auto_sort_order()
  test_auto_sort_order_enabled()
  test_update_existing_dont_duplicate()
  test_update_reorder_down()
  test_update_reorder_up()
  test_auto_sort_order_change_to_enabled()
  test_auto_sort_order_change_to_disabled()
  test_filter_get_global_states()
  assert_only_one_local_setting()
  assert_no_local_setting()
  test_local_on()
  test_local_off()
  test_local_inherit()
  test_local_invalid_state_throws_exception()
  test_throws_exception_when_setting_global()
  test_local_inherit_deletes_existing()
  assert_only_one_config()
  test_set_new_config()
  test_update_existing_config()
  test_filter_get_local_config()
  setup_available_in_context_tests()
  assert_filter_list()
  test_globally_on_is_returned()
  test_globally_off_not_returned()
  test_globally_off_overridden()
  test_globally_on_overridden()
  test_globally_disabled_not_overridden()
  test_single_config_returned()
  test_multi_config_returned()
  test_config_from_other_context_not_returned()
  test_config_from_other_filter_not_returned()
  assert_one_available_filter()
  test_available_in_context_localoverride()
  test_available_in_context_nolocaloverride()
  test_available_in_context_disabled_not_returned()
  test_available_in_context_exception_with_syscontext()
  setup_preload_activities_test()
  assert_matches()
  test_preload()
  test_filter_delete_all_for_filter()
  test_filter_delete_all_for_context()
  test_set()
  test_unset_to_empty()
  test_unset_multi()
  test_filter_manager_instance()


Class: core_filterlib_testcase  - X-Ref

Test filters.

setUp()   X-Ref
No description

assert_only_one_filter_globally($filter, $state)   X-Ref
No description

assert_global_sort_order($filters)   X-Ref
No description

test_set_filter_globally_on()   X-Ref
No description

test_set_filter_globally_off()   X-Ref
No description

test_set_filter_globally_disabled()   X-Ref
No description

test_global_config_exception_on_invalid_state()   X-Ref


test_auto_sort_order()   X-Ref
No description

test_auto_sort_order_enabled()   X-Ref
No description

test_update_existing_dont_duplicate()   X-Ref
No description

test_update_reorder_down()   X-Ref
No description

test_update_reorder_up()   X-Ref
No description

test_auto_sort_order_change_to_enabled()   X-Ref
No description

test_auto_sort_order_change_to_disabled()   X-Ref
No description

test_filter_get_global_states()   X-Ref
No description

assert_only_one_local_setting($filter, $contextid, $state)   X-Ref
No description

assert_no_local_setting()   X-Ref
No description

test_local_on()   X-Ref
No description

test_local_off()   X-Ref
No description

test_local_inherit()   X-Ref
No description

test_local_invalid_state_throws_exception()   X-Ref


test_throws_exception_when_setting_global()   X-Ref


test_local_inherit_deletes_existing()   X-Ref
No description

assert_only_one_config($filter, $context, $name, $value)   X-Ref
No description

test_set_new_config()   X-Ref
No description

test_update_existing_config()   X-Ref
No description

test_filter_get_local_config()   X-Ref
No description

setup_available_in_context_tests()   X-Ref
No description

assert_filter_list($expectedfilters, $filters)   X-Ref
No description

test_globally_on_is_returned()   X-Ref
No description

test_globally_off_not_returned()   X-Ref
No description

test_globally_off_overridden()   X-Ref
No description

test_globally_on_overridden()   X-Ref
No description

test_globally_disabled_not_overridden()   X-Ref
No description

test_single_config_returned()   X-Ref
No description

test_multi_config_returned()   X-Ref
No description

test_config_from_other_context_not_returned()   X-Ref
No description

test_config_from_other_filter_not_returned()   X-Ref
No description

assert_one_available_filter($filter, $localstate, $inheritedstate, $filters)   X-Ref
No description

test_available_in_context_localoverride()   X-Ref
No description

test_available_in_context_nolocaloverride()   X-Ref
No description

test_available_in_context_disabled_not_returned()   X-Ref
No description

test_available_in_context_exception_with_syscontext()   X-Ref


setup_preload_activities_test()   X-Ref
No description

assert_matches($modinfo)   X-Ref
No description

test_preload()   X-Ref
No description

test_filter_delete_all_for_filter()   X-Ref
No description

test_filter_delete_all_for_context()   X-Ref
No description

test_set()   X-Ref
No description

test_unset_to_empty()   X-Ref
No description

test_unset_multi()   X-Ref
No description

test_filter_manager_instance()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1