Make WordPress Core


Ignore:
Timestamp:
11/25/2021 07:39:31 PM (2 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Correct the order and naming of expected and actual values in various tests.

This corrects the order of the parameters when used in assertions so if/when they fail the failure message is correct.

See #53363

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/nav-menu.php

    r52010 r52248  
    248248        $nav_menus_names = wp_list_pluck( wp_get_nav_menus(), 'name' );
    249249
    250         $this->assertSame( $nav_menus_names, $expected_nav_menus_names );
     250        $this->assertSame( $expected_nav_menus_names, $nav_menus_names );
    251251    }
    252252
Note: See TracChangeset for help on using the changeset viewer.