Changeset 48937 for trunk/tests/phpunit/tests/ajax/DimComment.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/DimComment.php
r48220 r48937 83 83 84 84 // Ensure everything is correct. 85 $this->assert Equals( $comment->comment_ID, (string) $xml->response[0]->comment['id'] );86 $this->assert Equals( 'dim-comment_' . $comment->comment_ID, (string) $xml->response['action'] );85 $this->assertSame( $comment->comment_ID, (string) $xml->response[0]->comment['id'] ); 86 $this->assertSame( 'dim-comment_' . $comment->comment_ID, (string) $xml->response['action'] ); 87 87 $this->assertGreaterThanOrEqual( time() - 10, (int) $xml->response[0]->comment[0]->supplemental[0]->time[0] ); 88 88 $this->assertLessThanOrEqual( time(), (int) $xml->response[0]->comment[0]->supplemental[0]->time[0] ); … … 91 91 $current = wp_get_comment_status( $comment->comment_ID ); 92 92 if ( in_array( $prev_status, array( 'unapproved', 'spam' ), true ) ) { 93 $this->assert Equals( 'approved', $current );93 $this->assertSame( 'approved', $current ); 94 94 } else { 95 $this->assert Equals( 'unapproved', $current );95 $this->assertSame( 'unapproved', $current ); 96 96 } 97 97 … … 194 194 195 195 // Ensure everything is correct. 196 $this->assert Equals( '0', (string) $xml->response[0]->comment['id'] );197 $this->assert Equals( 'dim-comment_0', (string) $xml->response['action'] );196 $this->assertSame( '0', (string) $xml->response[0]->comment['id'] ); 197 $this->assertSame( 'dim-comment_0', (string) $xml->response['action'] ); 198 198 $this->assertContains( 'Comment ' . $_POST['id'] . ' does not exist', $this->_last_response ); 199 199
Note: See TracChangeset
for help on using the changeset viewer.