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

    r35186 r35224  
    2828
    2929    public static function wpTearDownAfterClass() {
    30         if ( is_multisite() ) {
    31             wpmu_delete_user( self::$user_id );
    32         } else {
    33             wp_delete_user( self::$user_id );
    34         }
     30        self::delete_user( self::$user_id );
    3531    }
    3632
Note: See TracChangeset for help on using the changeset viewer.