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

    r45588 r45607  
    9696
    9797            $tcache = wp_cache_get( $id, 'ctax_relationships' );
    98             if ( 'cpt' == $post_type ) {
     98            if ( 'cpt' === $post_type ) {
    9999                $this->assertInternalType( 'array', $tcache );
    100100                $this->assertEquals( 2, count( $tcache ) );
     
    10091009    function test_utf8mb3_post_saves_with_emoji() {
    10101010        global $wpdb;
    1011         $_wpdb = new wpdb_exposed_methods_for_testing();
     1011        $_wpdb = new WpdbExposedMethodsForTesting();
    10121012
    10131013        if ( 'utf8' !== $_wpdb->get_col_charset( $wpdb->posts, 'post_title' ) ) {
Note: See TracChangeset for help on using the changeset viewer.