Changeset 55019 for trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php
- Timestamp:
- 12/28/2022 02:07:16 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php
r46986 r55019 11 11 * WP_UnitTest_Factory_Callback_After_Create constructor. 12 12 * 13 * @since UT (3.7.0) 14 * 13 15 * @param callable $callback A callback function. 14 16 */ … … 20 22 * Calls the set callback on a given object. 21 23 * 22 * @ param mixed $object The object to apply the callback on.24 * @since UT (3.7.0) 23 25 * 24 * @return mixed The possibly altered object. 26 * @param int $object_id ID of the object to apply the callback on. 27 * 28 * @return mixed Updated object field. 25 29 */ 26 public function call( $object ) {27 return call_user_func( $this->callback, $object );30 public function call( $object_id ) { 31 return call_user_func( $this->callback, $object_id ); 28 32 } 29 33 }
Note: See TracChangeset
for help on using the changeset viewer.