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/ajax/CustomizeMenus.php

    r43571 r45607  
    5353    function test_ajax_load_available_items_cap_check( $role, $expected_results ) {
    5454
    55         if ( 'administrator' != $role ) {
     55        if ( 'administrator' !== $role ) {
    5656            // If we're not an admin, we should get a wp_die(-1).
    5757            $this->setExpectedException( 'WPAjaxDieStopException' );
     
    442442    function test_ajax_search_available_items_caps_check( $role, $expected_results ) {
    443443
    444         if ( 'administrator' != $role ) {
     444        if ( 'administrator' !== $role ) {
    445445            // If we're not an admin, we should get a wp_die(-1).
    446446            $this->setExpectedException( 'WPAjaxDieStopException' );
Note: See TracChangeset for help on using the changeset viewer.