REST API: Grant super admin to site health test user.

The current user needs to be a super admin to access Site Health on multisite.

Follow up to [49154].
See #48105.


git-svn-id: https://develop.svn.wordpress.org/trunk@49155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Timothy Jacobs 2020-10-15 02:11:28 +00:00
parent efe06cdcea
commit 73fb2c137a
1 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,10 @@ class WP_Test_REST_Site_Health_Controller extends WP_Test_REST_TestCase {
'role' => 'administrator', 'role' => 'administrator',
) )
); );
if ( is_multisite() ) {
grant_super_admin( self::$admin );
}
} }
/** /**