Tests: Update legacy arguments passed to WP_UnitTest_Factory_For_Blog::create_object().

This converts the arguments originally meant for `wpmu_create_blog()` to the ones used by `wp_insert_site()`.

Follow-up to [47011].

Fixes #47195.

git-svn-id: https://develop.svn.wordpress.org/trunk@47013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-12-25 21:39:46 +00:00
parent f8051662b1
commit 93eeb8f1d7
13 changed files with 137 additions and 140 deletions

View File

@@ -83,7 +83,7 @@ if ( is_multisite() ) :
$site_id = self::factory()->blog->create(
array(
'user_id' => self::$user_id,
'meta' => array( 'spam' => 1 ),
'spam' => 1,
)
);