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/rest-api/rest-request.php

    r43571 r45607  
    464464        $data = $valid->get_error_data( 'rest_missing_callback_param' );
    465465
    466         $this->assertTrue( in_array( 'someinteger', $data['params'] ) );
    467         $this->assertTrue( in_array( 'someotherinteger', $data['params'] ) );
     466        $this->assertTrue( in_array( 'someinteger', $data['params'], true ) );
     467        $this->assertTrue( in_array( 'someotherinteger', $data['params'], true ) );
    468468    }
    469469
Note: See TracChangeset for help on using the changeset viewer.