WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/25/2019 06:15:13 PM (11 months 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/user/getActiveBlogForUser.php

    r46586 r47012  
    5252            $result = get_active_blog_for_user( self::$user_id );
    5353
    54             wpmu_delete_blog( $site_id_one, true );
    55             wpmu_delete_blog( $site_id_two, true );
     54            wp_delete_site( $site_id_one );
     55            wp_delete_site( $site_id_two );
    5656
    5757            $this->assertEquals( $primary_site_id, $result->id );
     
    7070            $result = get_active_blog_for_user( self::$user_id );
    7171
    72             wpmu_delete_blog( $primary_site_id, true );
     72            wp_delete_site( $primary_site_id );
    7373
    7474            $this->assertEquals( $primary_site_id, $result->id );
     
    9393            $result = get_active_blog_for_user( self::$user_id );
    9494
    95             wpmu_delete_blog( $site_id, true );
     95            wp_delete_site( $site_id );
    9696
    9797            $this->assertEquals( $current_site_id, $result->id );
Note: See TracChangeset for help on using the changeset viewer.