Make WordPress Core


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

    r43571 r45607  
    2323
    2424        $taxonomy_object->add_rewrite_rules();
    25         $this->assertFalse( in_array( 'foobar', $wp->public_query_vars ) );
     25        $this->assertFalse( in_array( 'foobar', $wp->public_query_vars, true ) );
    2626    }
    2727
     
    4444
    4545        $taxonomy_object->add_rewrite_rules();
    46         $in_array = in_array( 'foobar', $wp->public_query_vars );
     46        $in_array = in_array( 'foobar', $wp->public_query_vars, true );
    4747
    4848        $taxonomy_object->remove_rewrite_rules();
    49         $in_array_after = in_array( 'foobar', $wp->public_query_vars );
     49        $in_array_after = in_array( 'foobar', $wp->public_query_vars, true );
    5050
    5151        $this->assertTrue( $in_array );
     
    7575        $rewrite_tags_after = $wp_rewrite->rewritecode;
    7676
    77         $this->assertNotFalse( array_search( "%$taxonomy%", $rewrite_tags ) );
    78         $this->assertFalse( array_search( "%$taxonomy%", $rewrite_tags_after ) );
     77        $this->assertNotFalse( array_search( "%$taxonomy%", $rewrite_tags, true ) );
     78        $this->assertFalse( array_search( "%$taxonomy%", $rewrite_tags_after, true ) );
    7979    }
    8080
Note: See TracChangeset for help on using the changeset viewer.