Tests: Fix typo in `test_do_action_with_multiple_callbacks_on_different_priorities()`.
Props withinboredom. Fixes #42311. git-svn-id: https://develop.svn.wordpress.org/trunk@41971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a77ccfad80
commit
1546ae8963
|
@ -77,7 +77,7 @@ class Tests_WP_Hook_Do_Action extends WP_UnitTestCase {
|
||||||
$arg = __FUNCTION__ . '_arg';
|
$arg = __FUNCTION__ . '_arg';
|
||||||
|
|
||||||
$hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
|
$hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
|
||||||
$hook->add_filter( $tag, $callback_two, $priority, $accepted_args );
|
$hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args );
|
||||||
$hook->do_action( array( $arg ) );
|
$hook->do_action( array( $arg ) );
|
||||||
|
|
||||||
$this->assertEquals( 1, $a->get_call_count() );
|
$this->assertEquals( 1, $a->get_call_count() );
|
||||||
|
|
Loading…
Reference in New Issue