Make WordPress Core


Ignore:
Timestamp:
12/25/2019 06:15:13 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Replace most instances of wpmu_delete_blog() not specifically testing that function with wp_delete_site().

Follow-up to [47011].

See #47195.

File:
1 edited

Legend:

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

    r46586 r47012  
    6464
    6565            foreach ( self::$different_site_ids as $id ) {
    66                 wpmu_delete_blog( $id, true );
     66                wp_delete_site( $id );
    6767            }
    6868
     
    156156
    157157            foreach ( $site_ids as $site_id ) {
    158                 wpmu_delete_blog( $site_id, true );
     158                wp_delete_site( $site_id );
    159159            }
    160160            wp_update_network_counts();
     
    176176
    177177            foreach ( $site_ids as $site_id ) {
    178                 wpmu_delete_blog( $site_id, true );
     178                wp_delete_site( $site_id );
    179179            }
    180180            wp_update_network_counts();
     
    196196
    197197            foreach ( $site_ids as $site_id ) {
    198                 wpmu_delete_blog( $site_id, true );
     198                wp_delete_site( $site_id );
    199199            }
    200200            wp_update_network_counts();
     
    591591            $original_count = get_blog_count( self::$different_network_id );
    592592
    593             $site_id = self::factory()->blog->create(
    594                 array(
    595                     'domain'  => 'example.org',
    596                     'path'    => '/',
    597                     'site_id' => self::$different_network_id,
    598                 )
    599             );
     593            $site_id = wpmu_create_blog( 'example.org', '/', '', 1, array(), self::$different_network_id );
    600594
    601595            $result = get_blog_count( self::$different_network_id );
Note: See TracChangeset for help on using the changeset viewer.