diff --git a/tests/phpunit/tests/link/getDashboardUrl.php b/tests/phpunit/tests/link/getDashboardUrl.php index b91edc7da8..4a6be8b901 100644 --- a/tests/phpunit/tests/link/getDashboardUrl.php +++ b/tests/phpunit/tests/link/getDashboardUrl.php @@ -11,7 +11,11 @@ class Tests_Link_GetDashboardUrl extends WP_UnitTestCase { } public static function wpTearDownAfterClass() { - wpmu_delete_user( self::$user_id ); + if ( is_multisite() ) { + wpmu_delete_user( self::$user_id ); + } else { + wp_delete_user( self::$user_id ); + } } /**