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/wp.php

    r44577 r45607  
    2323
    2424        $this->assertSame( $public_qv_count + 2, count( $this->wp->public_query_vars ) );
    25         $this->assertTrue( in_array( 'test', $this->wp->public_query_vars ) );
    26         $this->assertTrue( in_array( 'test2', $this->wp->public_query_vars ) );
     25        $this->assertTrue( in_array( 'test', $this->wp->public_query_vars, true ) );
     26        $this->assertTrue( in_array( 'test2', $this->wp->public_query_vars, true ) );
    2727    }
    2828
     
    3131
    3232        $this->wp->add_query_var( 'test' );
    33         $this->assertTrue( in_array( 'test', $this->wp->public_query_vars ) );
     33        $this->assertTrue( in_array( 'test', $this->wp->public_query_vars, true ) );
    3434        $this->wp->remove_query_var( 'test' );
    3535
Note: See TracChangeset for help on using the changeset viewer.