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/wpGetSites.php

    r47012 r47013  
    1414                        self::$site_ids = array(
    1515                                'w.org/'      => array(
    16                                         'domain'  => 'w.org',
    17                                         'path'    => '/',
    18                                         'site_id' => 2,
     16                                        'domain'     => 'w.org',
     17                                        'path'       => '/',
     18                                        'network_id' => 2,
    1919                                ),
    2020                                'wp.org/'     => array(
    21                                         'domain'  => 'wp.org',
    22                                         'path'    => '/',
    23                                         'site_id' => 2,
    24                                         'meta'    => array( 'public' => 0 ),
     21                                        'domain'     => 'wp.org',
     22                                        'path'       => '/',
     23                                        'network_id' => 2,
     24                                        'public'     => 0,
    2525                                ),
    2626                                'wp.org/foo/' => array(
    27                                         'domain'  => 'wp.org',
    28                                         'path'    => '/foo/',
    29                                         'site_id' => 1,
    30                                         'meta'    => array( 'public' => 0 ),
     27                                        'domain'     => 'wp.org',
     28                                        'path'       => '/foo/',
     29                                        'network_id' => 1,
     30                                        'public'     => 0,
    3131                                ),
    3232                                'wp.org/oof/' => array(
Note: See TracChangeset for help on using the changeset viewer.