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

    r46586 r47012  
    4242            }
    4343
    44             wpmu_delete_blog( self::$site_id, true );
    45             wpmu_delete_blog( self::$site_id2, true );
     44            wp_delete_site( self::$site_id );
     45            wp_delete_site( self::$site_id2 );
    4646
    4747            wp_update_network_site_counts();
     
    214214            $this->assertSame( 'bar', get_site_meta( $site_id, 'foo1', true ) );
    215215
    216             wpmu_delete_blog( $site_id, true );
     216            wp_delete_site( $site_id );
    217217
    218218            $this->assertSame( '', get_site_meta( $site_id, 'foo', true ) );
Note: See TracChangeset for help on using the changeset viewer.