Changeset 52389 for trunk/tests/phpunit/tests/hooks/doAction.php
- Timestamp:
- 12/19/2021 01:42:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/doAction.php
r51568 r52389 22 22 $hook = new WP_Hook(); 23 23 $tag = __FUNCTION__; 24 $priority = rand( 1, 100 );25 $accepted_args = rand( 1, 100 );24 $priority = 1; 25 $accepted_args = 2; 26 26 $arg = __FUNCTION__ . '_arg'; 27 27 … … 37 37 $hook = new WP_Hook(); 38 38 $tag = __FUNCTION__; 39 $priority = rand( 1, 100 );40 $accepted_args = rand( 1, 100 );39 $priority = 1; 40 $accepted_args = 2; 41 41 $arg = __FUNCTION__ . '_arg'; 42 42 … … 55 55 $hook = new WP_Hook(); 56 56 $tag = __FUNCTION__; 57 $priority = rand( 1, 100 );58 $accepted_args = rand( 1, 100 );57 $priority = 1; 58 $accepted_args = 2; 59 59 $arg = __FUNCTION__ . '_arg'; 60 60 … … 74 74 $hook = new WP_Hook(); 75 75 $tag = __FUNCTION__; 76 $priority = rand( 1, 100 );77 $accepted_args = rand( 1, 100 );76 $priority = 1; 77 $accepted_args = 2; 78 78 $arg = __FUNCTION__ . '_arg'; 79 79 … … 90 90 $hook = new WP_Hook(); 91 91 $tag = __FUNCTION__; 92 $priority = rand( 1, 100 );92 $priority = 1; 93 93 $accepted_args = 0; 94 94 $arg = __FUNCTION__ . '_arg'; … … 104 104 $hook = new WP_Hook(); 105 105 $tag = __FUNCTION__; 106 $priority = rand( 1, 100 );106 $priority = 1; 107 107 $accepted_args = 1; 108 108 $arg = __FUNCTION__ . '_arg'; … … 118 118 $hook = new WP_Hook(); 119 119 $tag = __FUNCTION__; 120 $priority = rand( 1, 100 );120 $priority = 100; 121 121 $accepted_args = 1000; 122 122 $arg = __FUNCTION__ . '_arg';
Note: See TracChangeset
for help on using the changeset viewer.