Changeset 58803
- Timestamp:
- 07/24/2024 03:08:08 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentAuthor.php
r58756 r58803 23 23 public function get_comment_author_filter( $comment_author, $comment_id, $comment ) { 24 24 $this->assertSame( $comment_id, self::$comment->comment_ID, 'Comment IDs do not match.' ); 25 $this->assert True( is_string( $comment_id ), '$comment_id parameter is not a string.' );25 $this->assertIsString( $comment_id, '$comment_id parameter is not a string.' ); 26 26 27 27 return $comment_author; … … 42 42 public function get_comment_author_filter_non_existent_id( $comment_author, $comment_id, $comment ) { 43 43 $this->assertSame( $comment_id, (string) self::$non_existent_comment_id, 'Comment IDs do not match.' ); 44 $this->assert True( is_string( $comment_id ), '$comment_id parameter is not a string.' );44 $this->assertIsString( $comment_id, '$comment_id parameter is not a string.' ); 45 45 46 46 return $comment_author; … … 72 72 $comment_props->user_id = $user->ID; 73 73 } 74 74 75 $comment = new WP_Comment( $comment_props ); 76 75 77 $this->assertSame( $expected, get_comment_author( $comment ) ); 76 78 }
Note: See TracChangeset
for help on using the changeset viewer.