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

    r34034 r35224  
    2020
    2121        // Non-existent users don't have blogs.
    22         if ( is_multisite() )
    23             wpmu_delete_user( $user_id );
    24         else
    25             wp_delete_user( $user_id );
     22        self::delete_user( $user_id );
    2623
    2724        $user = new WP_User( $user_id );
Note: See TracChangeset for help on using the changeset viewer.