From 701dee26f19b4bfdcbc1cc636f5fdecd8a753432 Mon Sep 17 00:00:00 2001 From: Timothy Jacobs Date: Thu, 15 Oct 2020 02:26:33 +0000 Subject: [PATCH] REST API: Exclude custom site health capability check on multisite. Super admins will always pass capability checks. Follow up to [49154], [49155]. See #48105. git-svn-id: https://develop.svn.wordpress.org/trunk@49156 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-site-health-controller.php | 3 +++ 1 file changed, 3 insertions(+) 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 07b69d958c..be88355a9d 100644 --- a/tests/phpunit/tests/rest-api/rest-site-health-controller.php +++ b/tests/phpunit/tests/rest-api/rest-site-health-controller.php @@ -77,6 +77,9 @@ class WP_Test_REST_Site_Health_Controller extends WP_Test_REST_TestCase { $this->assertErrorResponse( 'rest_forbidden', $response, 403 ); } + /** + * @group ms-excluded + */ public function test_custom_capability() { wp_set_current_user( self::$admin );