From 407325eb1a2448696a1f263d950be87ef07f68a1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Feb 2022 12:37:05 +0000 Subject: [PATCH] Tests: Correct the order of expected and actual values in `wp_array_slice_assoc()` tests. This corrects the order of the parameters when used in assertions so if/when they fail the failure message is correct. Follow-up to [45371]. See #54725. git-svn-id: https://develop.svn.wordpress.org/trunk@52774 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/wpArraySliceAssoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/functions/wpArraySliceAssoc.php b/tests/phpunit/tests/functions/wpArraySliceAssoc.php index f7ce7293a2..ddafd7dcc0 100644 --- a/tests/phpunit/tests/functions/wpArraySliceAssoc.php +++ b/tests/phpunit/tests/functions/wpArraySliceAssoc.php @@ -22,7 +22,7 @@ class Tests_Functions_wpArraySliceAssoc extends WP_UnitTestCase { * @param array $expected The expected result. */ public function test_wp_array_slice_assoc( $target_array, $keys, $expected ) { - $this->assertSame( wp_array_slice_assoc( $target_array, $keys ), $expected ); + $this->assertSame( $expected, wp_array_slice_assoc( $target_array, $keys ) ); } /**