diff --git a/tests/phpunit/tests/rest-api/rest-site-health-controller.php b/tests/phpunit/tests/rest-api/rest-site-health-controller.php index 670380f30d..07b69d958c 100644 --- a/tests/phpunit/tests/rest-api/rest-site-health-controller.php +++ b/tests/phpunit/tests/rest-api/rest-site-health-controller.php @@ -50,6 +50,10 @@ class WP_Test_REST_Site_Health_Controller extends WP_Test_REST_TestCase { 'role' => 'administrator', ) ); + + if ( is_multisite() ) { + grant_super_admin( self::$admin ); + } } /**