Changeset 52389 for trunk/tests/phpunit/tests/hooks/removeFilter.php
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/removeFilter.php
r51397 r52389 13 13 $hook = new WP_Hook(); 14 14 $tag = __FUNCTION__; 15 $priority = rand( 1, 100 );16 $accepted_args = rand( 1, 100 );15 $priority = 1; 16 $accepted_args = 2; 17 17 18 18 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 27 27 $hook = new WP_Hook(); 28 28 $tag = __FUNCTION__; 29 $priority = rand( 1, 100 );30 $accepted_args = rand( 1, 100 );29 $priority = 1; 30 $accepted_args = 2; 31 31 32 32 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 40 40 $hook = new WP_Hook(); 41 41 $tag = __FUNCTION__; 42 $priority = rand( 1, 100 );43 $accepted_args = rand( 1, 100 );42 $priority = 1; 43 $accepted_args = 2; 44 44 45 45 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 54 54 $hook = new WP_Hook(); 55 55 $tag = __FUNCTION__; 56 $priority = rand( 1, 100 );57 $accepted_args = rand( 1, 100 );56 $priority = 1; 57 $accepted_args = 2; 58 58 59 59 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); … … 70 70 $hook = new WP_Hook(); 71 71 $tag = __FUNCTION__; 72 $priority = rand( 1, 100 );73 $accepted_args = rand( 1, 100 );72 $priority = 1; 73 $accepted_args = 2; 74 74 75 75 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
Note: See TracChangeset
for help on using the changeset viewer.