- Timestamp:
- 12/18/2019 12:17:54 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php
r46586 r46985 37 37 * Updates a comment. 38 38 * 39 * @param int $comment_id The comment id.39 * @param int $comment_id The comment ID. 40 40 * @param array $fields The comment details. 41 41 * … … 48 48 49 49 /** 50 * Creates multiple comments on given post.50 * Creates multiple comments on a given post. 51 51 * 52 * @param int $post_id The post idto create comments for.52 * @param int $post_id ID of the post to create comments for. 53 53 * @param int $count Total amount of comments to create. 54 54 * @param array $args The comment details. 55 55 * @param null $generation_definitions Default values. 56 56 * 57 * @return int[] Array with the comment ids.57 * @return int[] Array with the comment IDs. 58 58 */ 59 59 public function create_post_comments( $post_id, $count = 1, $args = array(), $generation_definitions = null ) { … … 63 63 64 64 /** 65 * Ret urns a comment.65 * Retrieves a comment by a given ID. 66 66 * 67 * @param int $comment_id The comment id.67 * @param int $comment_id ID of the comment to retrieve. 68 68 * 69 * @return null|WP_Comment WP_Comment when found, null when not found.69 * @return WP_Comment|null WP_Comment object on success, null on failure. 70 70 */ 71 71 public function get_object_by_id( $comment_id ) {
Note: See TracChangeset
for help on using the changeset viewer.