[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/tests/tests/plugins/ -> filters.php (summary)

(no description)

File Size: 489 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Plugin_Filters_Tests:: (28 methods):
  test_add_filter_funcname()
  test_apply_filter_funcname()
  test_remove_filter_funcname()
  test_default_priority()
  test_remove_filter_priority()
  test_add_filter_create_function()
  test_apply_filter_create_function()
  test_add_filter_within_class()
  test_apply_filter_within_class()
  test_remove_filter_within_class()
  test_add_filter_within_class_array()
  test_apply_filter_within_class_array()
  test_remove_filter_within_class_array()
  test_add_filter_within_class_instance()
  test_apply_filter_within_class_instance()
  test_remove_filter_within_class_instance()
  test_add_filter_class_and_array()
  test_add_filter_closure()
  test_apply_filter_closure()
  test_multiple_filter()
  test_multiple_filter_with_priority()
  test_has_filter_return_values()
  test_get_filters()
  test_function_must_exist_if_applied()
  test_filter_specified_arguments()
  test_filter_arbitrary_arguments()
  test_multiple_filter_and_count()
  change_variable()


Class: Plugin_Filters_Tests  - X-Ref

Filter related tests

test_add_filter_funcname()   X-Ref
Check adding a filter with a simple function name

Syntax tested: yourls_add_filter( $hook, 'func_name' );

since: 0.1

test_apply_filter_funcname( $hook )   X-Ref
Check applying a filter hooked with a simple function name

since: 0.1

test_remove_filter_funcname()   X-Ref
Check removing a filter hooked with a simple function name

since: 0.1

test_default_priority()   X-Ref
Check that default priority is 10

since: 0.1

test_remove_filter_priority()   X-Ref
Check removing a filter with non default priority

since: 0.1

test_add_filter_create_function()   X-Ref
Check adding a filter with an anonymous function using create_function()

Syntax tested: yourls_add_filter( $hook, create_function() );

since: 0.1

test_apply_filter_create_function( $hook )   X-Ref
Check applying a filter hooked with an anonymous function using create_function()

since: 0.1

test_add_filter_within_class()   X-Ref
Check adding a filter with function within class

Syntax tested: yourls_add_filter( $hook, 'Class::Function' );

since: 0.1

test_apply_filter_within_class( $hook )   X-Ref
Check applying a filter hooked with function within class

since: 0.1

test_remove_filter_within_class( $hook )   X-Ref
Check removing a filter hooked with function within class

since: 0.1

test_add_filter_within_class_array()   X-Ref
Check adding filter with function within class using an array

Syntax tested: yourls_add_filter( $hook, array( 'Class', 'Function' ) );

since: 0.1

test_apply_filter_within_class_array( $hook )   X-Ref
Check applying a filter hooked with function within class

since: 0.1

test_remove_filter_within_class_array( $hook )   X-Ref
Check removing a filter hooked with function within class using an array

since: 0.1

test_add_filter_within_class_instance()   X-Ref
Check adding a filter with function within class instance

Syntax tested: yourls_add_filter( $hook, array( $class, 'function' ) );

since: 0.1

test_apply_filter_within_class_instance( $hook )   X-Ref
Check applying a filter hooked with function within class instance

since: 0.1

test_remove_filter_within_class_instance( $hook )   X-Ref
Check removing a filter hooked with function within class

since: 0.1

test_add_filter_class_and_array()   X-Ref
Check that hooking to 'Class::Method' or array( 'Class', 'Method') is the same

since: 0.1

test_add_filter_closure()   X-Ref
Check adding a filter with anonymous function using closure

Syntax tested: yourls_add_filter( $hook, function(){ // do stuff } );

since: 0.1

test_apply_filter_closure( $hook )   X-Ref
Check applying a filter hooked with anonymous function using closure

since: 0.1

test_multiple_filter()   X-Ref
Check applying multiple filters to one hook

since: 0.1

test_multiple_filter_with_priority()   X-Ref
Check applying multiple filters with priorities to one hook

since: 0.1

test_has_filter_return_values()   X-Ref
Check return values of yourls_has_filter()

since: 0.1

test_get_filters()   X-Ref
Check that yourls_get_filters() returns expected values


test_function_must_exist_if_applied()   X-Ref
Check that applied function must exist

since: 0.1

test_filter_specified_arguments()   X-Ref
Check filters accept multiple and defined number of arguments

since: 0.1

test_filter_arbitrary_arguments()   X-Ref
Make sure yourls_apply_filter accepts an arbitrary number of elements if unspecified

since: 0.1

test_multiple_filter_and_count()   X-Ref
Check applying multiple filters and count executions

since: 0.1

change_variable( $var )   X-Ref
Dummy function -- just modifies the value of a var




Generated: Tue Sep 27 05:10:01 2022 Cross-referenced by PHPXref 0.7.1