WordPress.org

Make WordPress Core

Changeset 39590


Ignore:
Timestamp:
12/12/16 23:17:35 (4 months ago)
Author:
flixos90
Message:

Tests: Use wp_delete_user() during teardown to delete a single site's user.

Fixes failing tests for get_dashboard_url().

Fixes #39065.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/link/getDashboardUrl.php

    r39589 r39590  
    1212 
    1313    public static function wpTearDownAfterClass() { 
    14         wpmu_delete_user( self::$user_id ); 
     14        if ( is_multisite() ) { 
     15            wpmu_delete_user( self::$user_id ); 
     16        } else { 
     17            wp_delete_user( self::$user_id ); 
     18        } 
    1519    } 
    1620 
Note: See TracChangeset for help on using the changeset viewer.