Make WordPress Core


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

    r45588 r45607  
    745745        $nodes = $wp_admin_bar->get_nodes();
    746746        foreach ( $this->get_my_sites_network_menu_items() as $id => $cap ) {
    747             if ( in_array( $cap, $network_user_caps ) ) {
     747            if ( in_array( $cap, $network_user_caps, true ) ) {
    748748                $this->assertTrue( isset( $nodes[ $id ] ), sprintf( 'Menu item %1$s must display for a user with the %2$s cap.', $id, $cap ) );
    749749            } else {
Note: See TracChangeset for help on using the changeset viewer.