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

    r35206 r35224  
    4747        foreach ( $sets as $set ) {
    4848            foreach ( $set as $id ) {
    49                 if ( is_multisite() ) {
    50                     wpmu_delete_user( $id );
    51                 } else {
    52                     wp_delete_user( $id );
    53                 }
     49                self::delete_user( $id );
    5450            }
    5551        }
Note: See TracChangeset for help on using the changeset viewer.