- Timestamp:
- 12/18/2019 12:17:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-user.php
r46586 r46985 27 27 * @param array $args The user data to insert. 28 28 * 29 * @return int|WP_Error 29 * @return int|WP_Error The user ID on success, WP_Error object on failure. 30 30 */ 31 31 public function create_object( $args ) { … … 36 36 * Updates the user data. 37 37 * 38 * @param int $user_id The user idto update.38 * @param int $user_id ID of the user to update. 39 39 * @param array $fields The user data to update. 40 40 * 41 * @return int|WP_Error User id on success. WP_Erroron failure.41 * @return int|WP_Error The user ID on success, WP_Error object on failure. 42 42 */ 43 43 public function update_object( $user_id, $fields ) { … … 47 47 48 48 /** 49 * Retrieves the user for given user id.49 * Retrieves the user for a given ID. 50 50 * 51 * @param int $user_id The user id to get.51 * @param int $user_id ID of the user ID to retrieve. 52 52 * 53 * @return WP_User The user .53 * @return WP_User The user object. 54 54 */ 55 55 public function get_object_by_id( $user_id ) {
Note: See TracChangeset
for help on using the changeset viewer.