Changeset 38762 for trunk/tests/phpunit/tests/hooks/apply_filters.php
- Timestamp:
- 10/09/2016 01:11:14 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/hooks/apply_filters.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/apply_filters.php
r38571 r38762 12 12 $callback = array( $a, 'filter' ); 13 13 $hook = new WP_Hook(); 14 $tag = rand_str();14 $tag = __FUNCTION__; 15 15 $priority = rand( 1, 100 ); 16 16 $accepted_args = rand( 1, 100 ); 17 $arg = rand_str();17 $arg = __FUNCTION__ . '_arg'; 18 18 19 19 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 29 29 $callback = array( $a, 'filter' ); 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 ); 34 $arg = rand_str();34 $arg = __FUNCTION__ . '_arg'; 35 35 36 36 $hook->add_filter( $tag, $callback, $priority, $accepted_args );
Note: See TracChangeset
for help on using the changeset viewer.