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

    r35186 r35224  
    1818        wp_delete_post( self::$post_id );
    1919
    20         if ( is_multisite() ) {
    21             wpmu_delete_user( self::$user_id );
    22         } else {
    23             wp_delete_user( self::$user_id );
    24         }
     20        self::delete_user( self::$user_id );
    2521    }
    2622
Note: See TracChangeset for help on using the changeset viewer.