WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/18/2019 12:17:54 AM (2 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-user.php

    r46586 r46985  
    2727     * @param array $args The user data to insert.
    2828     *
    29      * @return int|WP_Error
     29     * @return int|WP_Error The user ID on success, WP_Error object on failure.
    3030     */
    3131    public function create_object( $args ) {
     
    3636     * Updates the user data.
    3737     *
    38      * @param int   $user_id The user id to update.
     38     * @param int   $user_id ID of the user to update.
    3939     * @param array $fields  The user data to update.
    4040     *
    41      * @return int|WP_Error User id on success. WP_Error on failure.
     41     * @return int|WP_Error The user ID on success, WP_Error object on failure.
    4242     */
    4343    public function update_object( $user_id, $fields ) {
     
    4747
    4848    /**
    49      * Retrieves the user for given user id.
     49     * Retrieves the user for a given ID.
    5050     *
    51      * @param int $user_id The user id to get.
     51     * @param int $user_id ID of the user ID to retrieve.
    5252     *
    53      * @return WP_User The user.
     53     * @return WP_User The user object.
    5454     */
    5555    public function get_object_by_id( $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.