You appear to be a bot. Output may be restricted
Description
Use this rather than MockAction so we can test callbacks with no args
Usage
Tests_Hooks_DoAction::_action_callback( $args );
Parameters
- $args
- ( mixed ) optional –
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/hooks/doAction.php
Lines:
1 to 7 of 7
public function _action_callback( ...$args ) { $this->events[] = array( 'action' => __FUNCTION__, 'args' => $args, ); }