mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +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:
@@ -389,7 +389,7 @@ if ( is_multisite() ) :
|
||||
$user = get_user_by( 'id', $user_id );
|
||||
restore_current_blog();
|
||||
|
||||
wpmu_delete_blog( $site_id );
|
||||
wp_delete_site( $site_id );
|
||||
wpmu_delete_user( $user_id );
|
||||
|
||||
$this->assertContains( 'subscriber', $user->roles );
|
||||
@@ -402,7 +402,8 @@ if ( is_multisite() ) :
|
||||
$site_id = self::factory()->blog->create();
|
||||
|
||||
$result = add_user_to_blog( 73622, $site_id, 'subscriber' );
|
||||
wpmu_delete_blog( $site_id );
|
||||
|
||||
wp_delete_site( $site_id );
|
||||
|
||||
$this->assertWPError( $result );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user