Changeset 6847 for trunk/tests/phpunit/includes/factory.php
- Timestamp:
- 08/09/2018 06:15:39 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/includes/factory.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory.php
r5770 r6847 29 29 public function create_object( $args ) { 30 30 $forum_meta = isset( $args['forum_meta'] ) ? $args['forum_meta'] : array(); 31 unset( $args['forum_meta'] ); 31 32 $forum_data = bbp_insert_forum( $args, $forum_meta ); 32 33 return $forum_data; … … 56 57 public function create_object( $args ) { 57 58 $topic_meta = isset( $args['topic_meta'] ) ? $args['topic_meta'] : array(); 59 unset( $args['topic_meta'] ); 58 60 $topic_data = bbp_insert_topic( $args, $topic_meta ); 59 61 return $topic_data; … … 82 84 public function create_object( $args ) { 83 85 $reply_meta = isset( $args['reply_meta'] ) ? $args['reply_meta'] : array(); 86 unset( $args['reply_meta'] ); 84 87 $reply_data = bbp_insert_reply( $args, $reply_meta ); 85 88 return $reply_data;
Note: See TracChangeset
for help on using the changeset viewer.