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

    r43571 r45607  
    812812        register_taxonomy( 'foo', 'post', array( 'query_var' => 'bar' ) );
    813813
    814         $this->assertInternalType( 'int', array_search( 'bar', $wp->public_query_vars ) );
     814        $this->assertInternalType( 'int', array_search( 'bar', $wp->public_query_vars, true ) );
    815815        $this->assertTrue( unregister_taxonomy( 'foo' ) );
    816         $this->assertFalse( array_search( 'bar', $wp->public_query_vars ) );
     816        $this->assertFalse( array_search( 'bar', $wp->public_query_vars, true ) );
    817817    }
    818818
Note: See TracChangeset for help on using the changeset viewer.