Changeset 42343 for trunk/tests/phpunit/tests/hooks/doAllHook.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/hooks/doAllHook.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/doAllHook.php
r42200 r42343 9 9 10 10 public function test_do_all_hook_with_multiple_calls() { 11 $a = new MockAction();12 $callback = array( $a, 'action' );13 $hook = new WP_Hook();14 $tag = 'all';15 $priority = rand( 1, 100 );11 $a = new MockAction(); 12 $callback = array( $a, 'action' ); 13 $hook = new WP_Hook(); 14 $tag = 'all'; 15 $priority = rand( 1, 100 ); 16 16 $accepted_args = rand( 1, 100 ); 17 $arg = 'all_arg';17 $arg = 'all_arg'; 18 18 19 19 $hook->add_filter( $tag, $callback, $priority, $accepted_args );
Note: See TracChangeset
for help on using the changeset viewer.