From 1546ae8963bd8f7b1b73b86ee18d37a28794fa17 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Oct 2017 13:03:34 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/hooks/doAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/hooks/doAction.php b/tests/phpunit/tests/hooks/doAction.php index 18d62521ac..6aedbb5139 100755 --- a/tests/phpunit/tests/hooks/doAction.php +++ b/tests/phpunit/tests/hooks/doAction.php @@ -77,7 +77,7 @@ class Tests_WP_Hook_Do_Action extends WP_UnitTestCase { $arg = __FUNCTION__ . '_arg'; $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 ) ); $this->assertEquals( 1, $a->get_call_count() );