mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
wp-tests-config.php can/should reside in the root of a develop checkout. `phpunit` should be run from the root. see #25088. git-svn-id: https://develop.svn.wordpress.org/trunk@25165 602fd350-edb4-49c9-b593-d223f7449a82
23 lines
429 B
PHP
23 lines
429 B
PHP
<?php
|
|
|
|
/**
|
|
* @group hooks
|
|
*/
|
|
class Tests_Actions_Callbacks extends WP_UnitTestCase {
|
|
|
|
/**
|
|
* @ticket 23265
|
|
*/
|
|
function test_callback_representations() {
|
|
$tag = __FUNCTION__;
|
|
|
|
$this->assertFalse( has_action( $tag ) );
|
|
|
|
add_action( $tag, array( 'Class', 'method' ) );
|
|
|
|
$this->assertEquals( 10, has_action( $tag, array( 'Class', 'method' ) ) );
|
|
|
|
$this->assertEquals( 10, has_action( $tag, 'Class::method' ) );
|
|
}
|
|
}
|