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