Changeset 52389 for trunk/tests/phpunit/tests/hooks/hasFilter.php
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/hasFilter.php
r50342 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 ); … … 26 26 $hook = new WP_Hook(); 27 27 $tag = __FUNCTION__; 28 $priority = rand( 1, 100 );29 $accepted_args = rand( 1, 100 );28 $priority = 1; 29 $accepted_args = 2; 30 30 31 31 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 38 38 $hook = new WP_Hook(); 39 39 $tag = __FUNCTION__; 40 $priority = rand( 1, 100 );41 $accepted_args = rand( 1, 100 );40 $priority = 1; 41 $accepted_args = 2; 42 42 43 43 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 50 50 $hook = new WP_Hook(); 51 51 $tag = __FUNCTION__; 52 $priority = rand( 1, 100 );53 $accepted_args = rand( 1, 100 );52 $priority = 1; 53 $accepted_args = 2; 54 54 55 55 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 75 75 $hook = new WP_Hook(); 76 76 $tag = __FUNCTION__; 77 $priority = rand( 1, 100 );78 $accepted_args = rand( 1, 100 );77 $priority = 1; 78 $accepted_args = 2; 79 79 80 80 $hook->add_filter( $tag, $callback, $priority, $accepted_args );
Note: See TracChangeset
for help on using the changeset viewer.