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/theme/themeDir.php

    r42816 r45607  
    146146        // Ignore themes in the default /themes directory.
    147147        foreach ( $themes as $theme_name => $theme ) {
    148             if ( $theme->get_theme_root() != $this->theme_root ) {
     148            if ( $theme->get_theme_root() !== $this->theme_root ) {
    149149                unset( $themes[ $theme_name ] );
    150150            }
     
    210210
    211211        $templates = $theme['Template Files'];
    212         $this->assertTrue( in_array( $this->theme_root . '/page-templates/template-top-level.php', $templates ) );
     212        $this->assertTrue( in_array( $this->theme_root . '/page-templates/template-top-level.php', $templates, true ) );
    213213    }
    214214
Note: See TracChangeset for help on using the changeset viewer.