Changeset 55020
- Timestamp:
- 12/29/2022 03:31:22 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php
r55019 r55020 212 212 213 213 /** 214 * Instantiates a callback object sfor the given function name.215 * 216 * @since UT (3.7.0) 217 * 218 * @param string $functionThe callback function.214 * Instantiates a callback object for the given function name. 215 * 216 * @since UT (3.7.0) 217 * 218 * @param callable $callback The callback function. 219 219 * 220 220 * @return WP_UnitTest_Factory_Callback_After_Create 221 221 */ 222 public function callback( $ function) {223 return new WP_UnitTest_Factory_Callback_After_Create( $ function);222 public function callback( $callback ) { 223 return new WP_UnitTest_Factory_Callback_After_Create( $callback ); 224 224 } 225 225
Note: See TracChangeset
for help on using the changeset viewer.