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/post/revisions.php

    r35193 r35224  
    1919        $ids = array( self::$admin_user_id, self::$editor_user_id, self::$author_user_id );
    2020        foreach ( $ids as $id ) {
    21             if ( is_multisite() ) {
    22                 wpmu_delete_user( $id );
    23             } else {
    24                 wp_delete_user( $id );
    25             }
     21            self::delete_user( $id );
    2622        }
    2723    }
Note: See TracChangeset for help on using the changeset viewer.