Make WordPress Core


Ignore:
Timestamp:
12/18/2019 12:17:54 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Various documentation fixes for unit test factories.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php

    r46586 r46985  
    3838     * Updates an existing post object.
    3939     *
    40      * @param int   $post_id The post id to update.
     40     * @param int   $post_id ID of the post to update.
    4141     * @param array $fields  Post data.
    4242     *
    43      * @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success.
     43     * @return int|WP_Error The post ID on success. The value 0 or WP_Error on failure.
    4444     */
    4545    public function update_object( $post_id, $fields ) {
     
    4949
    5050    /**
    51      * Retrieves a object by an id.
     51     * Retrieves a post by a given ID.
    5252     *
    53      * @param int   $post_id The post id to update.
     53     * @param int $post_id ID of the post to retrieve.
    5454     *
    55      * @return null|WP_Post WP_Post on success or null on failure.
     55     * @return WP_Post|null WP_Post object on success, null on failure.
    5656     */
    5757    public function get_object_by_id( $post_id ) {
Note: See TracChangeset for help on using the changeset viewer.