WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/16/2015 07:51:32 PM (6 years ago)
Author:
wonderboymusic
Message:

Unit Tests: since [32953], we can just use self::delete_user() instead of using if logic for Multisite.

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/countUserPosts.php

    r35186 r35224  
    3535
    3636    public static function wpTearDownAfterClass() {
    37         if ( is_multisite() ) {
    38             wpmu_delete_user( self::$user_id );
    39         } else {
    40             wp_delete_user( self::$user_id );
    41         }
     37        self::delete_user( self::$user_id );
    4238
    4339        foreach ( self::$post_ids as $post_id ) {
Note: See TracChangeset for help on using the changeset viewer.