You appear to be a bot. Output may be restricted
Description
Usage
Tests_Actions::test_has_action();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/actions.php
Lines:
1 to 14 of 14
public function test_has_action() { $tag = __FUNCTION__; $func = __FUNCTION__ . '_func'; $this->assertFalse( has_action( $tag, $func ) ); $this->assertFalse( has_action( $tag ) ); add_action( $tag, $func ); $this->assertSame( 10, has_action( $tag, $func ) ); $this->assertTrue( has_action( $tag ) ); remove_action( $tag, $func ); $this->assertFalse( has_action( $tag, $func ) ); $this->assertFalse( has_action( $tag ) ); }