Changeset 38762 for trunk/tests/phpunit/tests/hooks/has_filter.php
- Timestamp:
- 10/09/2016 01:11:14 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/has_filter.php
r38571 r38762 11 11 $callback = '__return_null'; 12 12 $hook = new WP_Hook(); 13 $tag = rand_str();13 $tag = __FUNCTION__; 14 14 $priority = rand( 1, 100 ); 15 15 $accepted_args = rand( 1, 100 ); … … 24 24 $callback = array( $a, 'action' ); 25 25 $hook = new WP_Hook(); 26 $tag = rand_str();26 $tag = __FUNCTION__; 27 27 $priority = rand( 1, 100 ); 28 28 $accepted_args = rand( 1, 100 ); … … 36 36 $callback = array( 'MockAction', 'action' ); 37 37 $hook = new WP_Hook(); 38 $tag = rand_str();38 $tag = __FUNCTION__; 39 39 $priority = rand( 1, 100 ); 40 40 $accepted_args = rand( 1, 100 ); … … 48 48 $callback = '__return_null'; 49 49 $hook = new WP_Hook(); 50 $tag = rand_str();50 $tag = __FUNCTION__; 51 51 $priority = rand( 1, 100 ); 52 52 $accepted_args = rand( 1, 100 ); … … 65 65 $callback = '__return_null'; 66 66 $hook = new WP_Hook(); 67 $tag = rand_str();67 $tag = __FUNCTION__; 68 68 69 69 $this->assertFalse( $hook->has_filter( $tag, $callback ) ); … … 73 73 $callback = '__return_null'; 74 74 $hook = new WP_Hook(); 75 $tag = rand_str();75 $tag = __FUNCTION__; 76 76 $priority = rand( 1, 100 ); 77 77 $accepted_args = rand( 1, 100 );
Note: See TracChangeset
for help on using the changeset viewer.