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

Fixes failing tests for `get_dashboard_url()`.

Fixes #39065.


git-svn-id: https://develop.svn.wordpress.org/trunk@39590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2016-12-12 23:17:35 +00:00
parent b4317ea053
commit b171b64d3c

View File

@ -11,7 +11,11 @@ class Tests_Link_GetDashboardUrl extends WP_UnitTestCase {
}
public static function wpTearDownAfterClass() {
if ( is_multisite() ) {
wpmu_delete_user( self::$user_id );
} else {
wp_delete_user( self::$user_id );
}
}
/**