Changeset 56221
- Timestamp:
- 07/12/2023 08:04:02 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r55466 r56221 61 61 62 62 $comment = get_comment( $comments[0] ); 63 $this->assertEquals( $comments[1], $comment->comment_parent ); 63 // The factory returns ints, but get_comment returns strings 64 $this->assertSame( (string) $comments[1], $comment->comment_parent ); 64 65 65 66 $result = wp_update_comment( … … 79 80 80 81 $comment = get_comment( $comments[0] ); 81 $this->assertEquals( $post2->ID, $comment->comment_post_ID ); 82 // The factory returns ints, but get_comment returns strings 83 $this->assertSame( (string) $post2->ID, $comment->comment_post_ID ); 82 84 } 83 85 … … 222 224 223 225 $comment = get_comment( $comment_id ); 224 $this->assert Equals( 1, $comment->user_id );226 $this->assertSame( "1", $comment->user_id ); 225 227 } 226 228
Note: See TracChangeset
for help on using the changeset viewer.