mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00: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:
@@ -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 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user