mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 21:39:50 +01:00
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:
parent
c98f4c04db
commit
cff706c8f0
@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user