Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (5 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-item-setting.php

    r43571 r45607  
    387387        $db_ids     = wp_list_pluck( $menu_items, 'db_id' );
    388388        $this->assertContains( $item_id, $db_ids );
    389         $i                         = array_search( $item_id, $db_ids );
     389        $i                         = array_search( $item_id, $db_ids, true );
    390390        $updated_item              = $menu_items[ $i ];
    391391        $post_value['post_status'] = $post_value['status'];
     
    677677        $db_ids     = wp_list_pluck( $menu_items, 'db_id' );
    678678        $this->assertContains( $item_id, $db_ids );
    679         $i                         = array_search( $item_id, $db_ids );
     679        $i                         = array_search( $item_id, $db_ids, true );
    680680        $updated_item              = $menu_items[ $i ];
    681681        $post_value['post_status'] = $post_value['status'];
Note: See TracChangeset for help on using the changeset viewer.