From cff706c8f0ec5be5904412e4cc0eb0579a114865 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Feb 2022 12:36:04 +0000 Subject: [PATCH] Tests: Correct the order of expected and actual values in `get_status_header_desc()` 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 [46107]. See #54725. git-svn-id: https://develop.svn.wordpress.org/trunk@52773 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/getStatusHeaderDesc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/functions/getStatusHeaderDesc.php b/tests/phpunit/tests/functions/getStatusHeaderDesc.php index c8a73ea99d..a7b253fcdd 100644 --- a/tests/phpunit/tests/functions/getStatusHeaderDesc.php +++ b/tests/phpunit/tests/functions/getStatusHeaderDesc.php @@ -17,7 +17,7 @@ class Tests_Functions_GetStatusHeaderDesc extends WP_UnitTestCase { * @param string $expected Status description. */ public function test_get_status_header_desc( $code, $expected ) { - $this->assertSame( get_status_header_desc( $code ), $expected ); + $this->assertSame( $expected, get_status_header_desc( $code ) ); } /**