diff --git a/tests/phpunit/tests/functions/wpArraySliceAssoc.php b/tests/phpunit/tests/functions/wpArraySliceAssoc.php index f7ce7293a2..ddafd7dcc0 100644 --- a/tests/phpunit/tests/functions/wpArraySliceAssoc.php +++ b/tests/phpunit/tests/functions/wpArraySliceAssoc.php @@ -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 ) ); } /**