You appear to be a bot. Output may be restricted
Description
Usage
Tests_Hooks_DoAction::test_do_action_with_more_accepted_args();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/hooks/doAction.php
Lines:
1 to 14 of 14
public function test_do_action_with_more_accepted_args() { $callback = array( $this, '_action_callback' ); $hook = new WP_Hook(); $tag = __FUNCTION__; $priority = rand( 1, 100 ); $accepted_args = 1000; $arg = __FUNCTION__ . '_arg'; $hook->add_filter( $tag, $callback, $priority, $accepted_args ); $hook->do_action( array( $arg ) ); $this->assertCount( 1, $this->events[0]['args'] ); }