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

    r46586 r47012  
    2222
    2323            restore_current_blog();
    24             wpmu_delete_blog( $blog_id, true );
     24
     25            wp_delete_site( $blog_id );
    2526
    2627            $this->assertNotEmpty( $first_page->post_content );
     
    4748
    4849            restore_current_blog();
    49             wpmu_delete_blog( $blog_id, true );
     50
     51            wp_delete_site( $blog_id );
    5052
    5153            $this->assertNotEmpty( $first_page->post_content );
     
    7274
    7375            restore_current_blog();
    74             wpmu_delete_blog( $blog_id, true );
     76
     77            wp_delete_site( $blog_id );
    7578
    7679            $this->assertEquals( 'Some page content', $first_page->post_content );
Note: See TracChangeset for help on using the changeset viewer.