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
This commit is contained in:
Sergey Biryukov 2022-02-19 12:37:05 +00:00
parent cff706c8f0
commit 407325eb1a

View File

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