Changeset 53804 for trunk/tests/phpunit/tests/actions/callbacks.php
- Timestamp:
- 07/31/2022 03:03:46 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/actions/callbacks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/actions/callbacks.php
r52010 r53804 12 12 */ 13 13 public function test_callback_representations() { 14 $ tag= __FUNCTION__;14 $hook_name = __FUNCTION__; 15 15 16 $this->assertFalse( has_action( $ tag) );16 $this->assertFalse( has_action( $hook_name ) ); 17 17 18 add_action( $ tag, array( 'Class', 'method' ) );18 add_action( $hook_name, array( 'Class', 'method' ) ); 19 19 20 $this->assertSame( 10, has_action( $ tag, array( 'Class', 'method' ) ) );20 $this->assertSame( 10, has_action( $hook_name, array( 'Class', 'method' ) ) ); 21 21 22 $this->assertSame( 10, has_action( $ tag, 'Class::method' ) );22 $this->assertSame( 10, has_action( $hook_name, 'Class::method' ) ); 23 23 } 24 24 }
Note: See TracChangeset
for help on using the changeset viewer.