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
This commit is contained in:
Sergey Biryukov 2022-02-19 12:36:04 +00:00
parent c98f4c04db
commit cff706c8f0

View File

@ -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 ) );
}
/**