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

    r35186 r35224  
    4343    public static function wpTearDownAfterClass() {
    4444        foreach ( array_merge( self::$users, array( self::$fred_id ) ) as $user_id ) {
    45             if ( is_multisite() ) {
    46                 wpmu_delete_user( $user_id );
    47             } else {
    48                 wp_delete_user( $user_id );
    49             }
     45            self::delete_user( $user_id );
    5046        }
    5147
Note: See TracChangeset for help on using the changeset viewer.