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

    r35189 r35224  
    3030        $ids = array( self::$test_id, self::$author_id );
    3131        foreach ( $ids as $id ) {
    32             if ( is_multisite() ) {
    33                 wpmu_delete_user( $id );
    34             } else {
    35                 wp_delete_user( $id );
    36             }
     32            self::delete_user( $id );
    3733        }
    3834    }
     
    596592                'user_email' => 'blackburn@battlefield4.com',
    597593            ) );
    598            
     594
    599595            if ( ! defined( 'WP_IMPORTING' ) ) {
    600596                $this->assertWPError( $return );
     
    653649
    654650    function _illegal_user_logins() {
    655         return array( 'testuser' ); 
     651        return array( 'testuser' );
    656652    }
    657653
Note: See TracChangeset for help on using the changeset viewer.