Changeset 38762 for trunk/tests/phpunit/tests/hooks/add_filter.php
- Timestamp:
- 10/09/2016 01:11:14 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/add_filter.php
r38571 r38762 14 14 $callback = '__return_null'; 15 15 $hook = new WP_Hook(); 16 $tag = rand_str();16 $tag = __FUNCTION__; 17 17 $priority = rand( 1, 100 ); 18 18 $accepted_args = rand( 1, 100 ); … … 29 29 $callback = array( $a, 'action' ); 30 30 $hook = new WP_Hook(); 31 $tag = rand_str();31 $tag = __FUNCTION__; 32 32 $priority = rand( 1, 100 ); 33 33 $accepted_args = rand( 1, 100 ); … … 43 43 $callback = array( 'MockAction', 'action' ); 44 44 $hook = new WP_Hook(); 45 $tag = rand_str();45 $tag = __FUNCTION__; 46 46 $priority = rand( 1, 100 ); 47 47 $accepted_args = rand( 1, 100 ); … … 58 58 $callback_two = '__return_false'; 59 59 $hook = new WP_Hook(); 60 $tag = rand_str();60 $tag = __FUNCTION__; 61 61 $priority = rand( 1, 100 ); 62 62 $accepted_args = rand( 1, 100 ); … … 73 73 $callback_two = '__return_false'; 74 74 $hook = new WP_Hook(); 75 $tag = rand_str();75 $tag = __FUNCTION__; 76 76 $priority = rand( 1, 100 ); 77 77 $accepted_args = rand( 1, 100 ); … … 88 88 $callback = '__return_null'; 89 89 $hook = new WP_Hook(); 90 $tag = rand_str();90 $tag = __FUNCTION__; 91 91 $priority = rand( 1, 100 ); 92 92 $accepted_args = rand( 1, 100 ); … … 102 102 $callback = '__return_null'; 103 103 $hook = new WP_Hook(); 104 $tag = rand_str();104 $tag = __FUNCTION__; 105 105 $priority = rand( 1, 100 ); 106 106 $accepted_args = rand( 1, 100 ); … … 119 119 $c = new MockAction(); 120 120 $hook = new WP_Hook(); 121 $tag = rand_str();121 $tag = __FUNCTION__; 122 122 123 123 $hook->add_filter( $tag, array( $a, 'action' ), 10, 1 );
Note: See TracChangeset
for help on using the changeset viewer.