Changeset 52389 for trunk/tests/phpunit/tests/hooks/addFilter.php
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/addFilter.php
r50342 r52389 16 16 $hook = new WP_Hook(); 17 17 $tag = __FUNCTION__; 18 $priority = rand( 1, 100 );19 $accepted_args = rand( 1, 100 );18 $priority = 1; 19 $accepted_args = 2; 20 20 21 21 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 31 31 $hook = new WP_Hook(); 32 32 $tag = __FUNCTION__; 33 $priority = rand( 1, 100 );34 $accepted_args = rand( 1, 100 );33 $priority = 1; 34 $accepted_args = 2; 35 35 36 36 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 45 45 $hook = new WP_Hook(); 46 46 $tag = __FUNCTION__; 47 $priority = rand( 1, 100 );48 $accepted_args = rand( 1, 100 );47 $priority = 1; 48 $accepted_args = 2; 49 49 50 50 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 60 60 $hook = new WP_Hook(); 61 61 $tag = __FUNCTION__; 62 $priority = rand( 1, 100 );63 $accepted_args = rand( 1, 100 );62 $priority = 1; 63 $accepted_args = 2; 64 64 65 65 $hook->add_filter( $tag, $callback_one, $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_one, $priority, $accepted_args ); … … 90 90 $hook = new WP_Hook(); 91 91 $tag = __FUNCTION__; 92 $priority = rand( 1, 100 );93 $accepted_args = rand( 1, 100 );92 $priority = 1; 93 $accepted_args = 2; 94 94 95 95 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 104 104 $hook = new WP_Hook(); 105 105 $tag = __FUNCTION__; 106 $priority = rand( 1, 100 );107 $accepted_args = rand( 1, 100 );106 $priority = 1; 107 $accepted_args = 2; 108 108 109 109 $hook->add_filter( $tag, $callback, $priority, $accepted_args );
Note: See TracChangeset
for help on using the changeset viewer.