Changeset 45607 for trunk/tests/phpunit/tests/ajax/DimComment.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/DimComment.php
r42343 r45607 90 90 // Check the status 91 91 $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 ) ) { 93 93 $this->assertEquals( 'approved', $current ); 94 94 } else { … … 104 104 105 105 // 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 ) ); 107 107 } 108 108
Note: See TracChangeset
for help on using the changeset viewer.