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:
parent
b4317ea053
commit
b171b64d3c
@ -11,7 +11,11 @@ class Tests_Link_GetDashboardUrl extends WP_UnitTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function wpTearDownAfterClass() {
|
public static function wpTearDownAfterClass() {
|
||||||
|
if ( is_multisite() ) {
|
||||||
wpmu_delete_user( self::$user_id );
|
wpmu_delete_user( self::$user_id );
|
||||||
|
} else {
|
||||||
|
wp_delete_user( self::$user_id );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user