You appear to be a bot. Output may be restricted
Description
Usage
Tests_Hooks_HasFilters::test_has_filters_with_callback();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/hooks/hasFilters.php
Lines:
1 to 12 of 12
public function test_has_filters_with_callback() { $callback = '__return_null'; $hook = new WP_Hook(); $tag = __FUNCTION__; $priority = rand( 1, 100 ); $accepted_args = rand( 1, 100 ); $hook->add_filter( $tag, $callback, $priority, $accepted_args ); $this->assertTrue( $hook->has_filters() ); }