- Timestamp:
- 03/15/2019 12:15:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
r44497 r44903 13 13 class WP_UnitTest_Factory_For_Blog extends WP_UnitTest_Factory_For_Thing { 14 14 15 function __construct( $factory = null ) {15 public function __construct( $factory = null ) { 16 16 global $current_site, $base; 17 17 parent::__construct( $factory ); … … 31 31 * @return int|WP_Error Returns WP_Error object on failure, the site ID on success. 32 32 */ 33 function create_object( $args ) {33 public function create_object( $args ) { 34 34 global $wpdb; 35 35 $meta = isset( $args['meta'] ) ? $args['meta'] : array( 'public' => 1 ); … … 54 54 * @return void 55 55 */ 56 function update_object( $blog_id, $fields ) {}56 public function update_object( $blog_id, $fields ) {} 57 57 58 58 /** … … 63 63 * @return null|WP_Site The site object or null if not found. 64 64 */ 65 function get_object_by_id( $blog_id ) {65 public function get_object_by_id( $blog_id ) { 66 66 return get_site( $blog_id ); 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.