mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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:
@@ -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,
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user