WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (2 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

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

    r43571 r45607  
    225225        $menus     = wp_get_nav_menus();
    226226        $menus_ids = wp_list_pluck( $menus, 'term_id' );
    227         $i         = array_search( $menu_id, $menus_ids );
     227        $i         = array_search( $menu_id, $menus_ids, true );
    228228        $this->assertInternalType( 'int', $i, 'Update-previewed menu does not appear in wp_get_nav_menus()' );
    229229        $filtered_menu = $menus[ $i ];
     
    270270        $menus     = wp_get_nav_menus();
    271271        $menus_ids = wp_list_pluck( $menus, 'term_id' );
    272         $i         = array_search( $menu_id, $menus_ids );
     272        $i         = array_search( $menu_id, $menus_ids, true );
    273273        $this->assertInternalType( 'int', $i, 'Insert-previewed menu was not injected into wp_get_nav_menus()' );
    274274        $filtered_menu = $menus[ $i ];
Note: See TracChangeset for help on using the changeset viewer.