Make WordPress Core


Ignore:
Timestamp:
12/25/2019 09:39:46 PM (7 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite.php

    r46586 r47013  
    4444                                'public'   => self::factory()->blog->create_many(
    4545                                        random_int( 0, 5 ),
    46                                         array( 'meta' => array( 'public' => 1 ) )
     46                                        array(
     47                                                'public' => 1,
     48                                        )
    4749                                ),
    4850                                'archived' => self::factory()->blog->create_many(
    4951                                        random_int( 0, 5 ),
    50                                         array( 'meta' => array( 'archived' => 1 ) )
     52                                        array(
     53                                                'public'   => 0,
     54                                                'archived' => 1,
     55                                        )
    5156                                ),
    5257                                'mature'   => self::factory()->blog->create_many(
    5358                                        random_int( 0, 5 ),
    54                                         array( 'meta' => array( 'mature' => 1 ) )
     59                                        array(
     60                                                'public' => 0,
     61                                                'mature' => 1,
     62                                        )
    5563                                ),
    5664                                'spam'     => self::factory()->blog->create_many(
    5765                                        random_int( 0, 5 ),
    58                                         array( 'meta' => array( 'spam' => 1 ) )
     66                                        array(
     67                                                'public' => 0,
     68                                                'spam'   => 1,
     69                                        )
    5970                                ),
    6071                                'deleted'  => self::factory()->blog->create_many(
    6172                                        random_int( 0, 5 ),
    62                                         array( 'meta' => array( 'deleted' => 1 ) )
     73                                        array(
     74                                                'public'  => 0,
     75                                                'deleted' => 1,
     76                                        )
    6377                                ),
    6478                        );
Note: See TracChangeset for help on using the changeset viewer.