mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-28 04:50:15 +00:00
Tests: Replace most instances of wpmu_delete_blog() not specifically testing that function with wp_delete_site().
Follow-up to [47011]. See #47195. git-svn-id: https://develop.svn.wordpress.org/trunk@47012 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -51,8 +51,8 @@ if ( is_multisite() ) :
|
||||
|
||||
$result = get_active_blog_for_user( self::$user_id );
|
||||
|
||||
wpmu_delete_blog( $site_id_one, true );
|
||||
wpmu_delete_blog( $site_id_two, true );
|
||||
wp_delete_site( $site_id_one );
|
||||
wp_delete_site( $site_id_two );
|
||||
|
||||
$this->assertEquals( $primary_site_id, $result->id );
|
||||
}
|
||||
@@ -69,7 +69,7 @@ if ( is_multisite() ) :
|
||||
|
||||
$result = get_active_blog_for_user( self::$user_id );
|
||||
|
||||
wpmu_delete_blog( $primary_site_id, true );
|
||||
wp_delete_site( $primary_site_id );
|
||||
|
||||
$this->assertEquals( $primary_site_id, $result->id );
|
||||
}
|
||||
@@ -92,7 +92,7 @@ if ( is_multisite() ) :
|
||||
|
||||
$result = get_active_blog_for_user( self::$user_id );
|
||||
|
||||
wpmu_delete_blog( $site_id, true );
|
||||
wp_delete_site( $site_id );
|
||||
|
||||
$this->assertEquals( $current_site_id, $result->id );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user