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/ajax/DimComment.php

    r42343 r45607  
    9090        // Check the status
    9191        $current = wp_get_comment_status( $comment->comment_ID );
    92         if ( in_array( $prev_status, array( 'unapproved', 'spam' ) ) ) {
     92        if ( in_array( $prev_status, array( 'unapproved', 'spam' ), true ) ) {
    9393            $this->assertEquals( 'approved', $current );
    9494        } else {
     
    104104
    105105        // Check for either possible total
    106         $this->assertTrue( in_array( (int) $xml->response[0]->comment[0]->supplemental[0]->total[0], array( $total, $recalc_total ) ) );
     106        $this->assertTrue( in_array( (int) $xml->response[0]->comment[0]->supplemental[0]->total[0], array( $total, $recalc_total ), true ) );
    107107    }
    108108
Note: See TracChangeset for help on using the changeset viewer.