Make WordPress Core

Changeset 52774


Ignore:
Timestamp:
02/19/2022 12:37:05 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/wpArraySliceAssoc.php

    r49006 r52774  
    2323     */
    2424    public function test_wp_array_slice_assoc( $target_array, $keys, $expected ) {
    25         $this->assertSame( wp_array_slice_assoc( $target_array, $keys ), $expected );
     25        $this->assertSame( $expected, wp_array_slice_assoc( $target_array, $keys ) );
    2626    }
    2727
Note: See TracChangeset for help on using the changeset viewer.