diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
index 68d24d30bb..4e3ca02707 100644
|
a
|
b
|
class WP_UnitTest_Factory_For_Blog extends WP_UnitTest_Factory_For_Thing {
|
| 36 | 36 | $user_id = isset( $args['user_id'] ) ? $args['user_id'] : get_current_user_id(); |
| 37 | 37 | // temp tables will trigger db errors when we attempt to reference them as new temp tables |
| 38 | 38 | $suppress = $wpdb->suppress_errors(); |
| 39 | | $blog = wpmu_create_blog( $args['domain'], $args['path'], $args['title'], $user_id, $meta, $args['site_id'] ); |
| | 39 | $blog = wp_insert_site( $args ); |
| 40 | 40 | $wpdb->suppress_errors( $suppress ); |
| 41 | 41 | |
| 42 | 42 | // Tell WP we're done installing. |