diff --git tests/actions/callbacks.php tests/actions/callbacks.php
new file mode 100644
index 0000000..a1b999a
-
|
+
|
|
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @group hooks |
| 5 | */ |
| 6 | class Tests_Actions_Callbacks extends WP_UnitTestCase { |
| 7 | |
| 8 | function test_callback_representations() { |
| 9 | $tag = __FUNCTION__; |
| 10 | |
| 11 | $this->assertFalse( has_action( $tag ) ); |
| 12 | |
| 13 | add_action( $tag, array( 'Class', 'method' ) ); |
| 14 | |
| 15 | $this->assertEquals( 10, has_action( $tag, array( 'Class', 'method' ) ) ); |
| 16 | |
| 17 | $this->assertEquals( 10, has_action( $tag, 'Class::method' ) ); |
| 18 | } |
| 19 | } |