Changeset 56222
- Timestamp:
- 07/12/2023 08:59:37 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r56221 r56222 61 61 62 62 $comment = get_comment( $comments[0] ); 63 // The factory returns ints, but get_comment returns strings 63 /* 64 * ::create_post_comments() returns comment IDs as integers, 65 * but WP_Comment::$comment_parent is a string. 66 */ 64 67 $this->assertSame( (string) $comments[1], $comment->comment_parent ); 65 68 … … 80 83 81 84 $comment = get_comment( $comments[0] ); 82 // The factory returns ints, but get_comment returns strings85 // WP_Post::$ID is an integer, but WP_Comment::$comment_post_ID is a string. 83 86 $this->assertSame( (string) $post2->ID, $comment->comment_post_ID ); 84 87 } … … 224 227 225 228 $comment = get_comment( $comment_id ); 226 $this->assertSame( "1", $comment->user_id );229 $this->assertSame( '1', $comment->user_id ); 227 230 } 228 231
Note: See TracChangeset
for help on using the changeset viewer.