Changeset 5687
- Timestamp:
- 04/19/2015 11:18:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory.php
r5677 r5687 28 28 29 29 public function create_object( $args ) { 30 return bbp_insert_forum( $args ); 30 $forum_meta = isset( $args['forum_meta'] ) ? $args['forum_meta'] : array(); 31 $forum_data = bbp_insert_forum( $args, $forum_meta ); 32 return $forum_data; 31 33 } 32 34 … … 53 55 54 56 public function create_object( $args ) { 55 return bbp_insert_topic( $args ); 57 $topic_meta = isset( $args['topic_meta'] ) ? $args['topic_meta'] : array(); 58 $topic_data = bbp_insert_topic( $args, $topic_meta ); 59 return $topic_data; 56 60 } 57 61 … … 77 81 78 82 public function create_object( $args ) { 79 return bbp_insert_reply( $args ); 83 $reply_meta = isset( $args['reply_meta'] ) ? $args['reply_meta'] : array(); 84 $reply_data = bbp_insert_reply( $args, $reply_meta ); 85 return $reply_data; 80 86 } 81 87
Note: See TracChangeset
for help on using the changeset viewer.