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

@@ -43,23 +43,37 @@ if ( is_multisite() ) :
$site_ids = array(
'public' => self::factory()->blog->create_many(
random_int( 0, 5 ),
array( 'meta' => array( 'public' => 1 ) )
array(
'public' => 1,
)
),
'archived' => self::factory()->blog->create_many(
random_int( 0, 5 ),
array( 'meta' => array( 'archived' => 1 ) )
array(
'public' => 0,
'archived' => 1,
)
),
'mature' => self::factory()->blog->create_many(
random_int( 0, 5 ),
array( 'meta' => array( 'mature' => 1 ) )
array(
'public' => 0,
'mature' => 1,
)
),
'spam' => self::factory()->blog->create_many(
random_int( 0, 5 ),
array( 'meta' => array( 'spam' => 1 ) )
array(
'public' => 0,
'spam' => 1,
)
),
'deleted' => self::factory()->blog->create_many(
random_int( 0, 5 ),
array( 'meta' => array( 'deleted' => 1 ) )
array(
'public' => 0,
'deleted' => 1,
)
),
);