diff --git a/tests/phpunit/tests/ajax/PrivacyErasePersonalData.php b/tests/phpunit/tests/ajax/PrivacyErasePersonalData.php index 1d14fa10f9..007b92e53d 100644 --- a/tests/phpunit/tests/ajax/PrivacyErasePersonalData.php +++ b/tests/phpunit/tests/ajax/PrivacyErasePersonalData.php @@ -312,15 +312,11 @@ class Tests_Ajax_PrivacyErasePersonalData extends WP_Ajax_UnitTestCase { /** * Test requests do not succeed on multisite when the current user is not a network admin. * - * @group multisite - * * @ticket 43438 + * @group multisite + * @group ms-required */ public function test_error_when_current_user_missing_required_capabilities_multisite() { - if ( ! is_multisite() ) { - $this->markTestSkipped( 'This test only runs on multisite.' ); - } - revoke_super_admin( get_current_user_id() ); $this->_make_ajax_call(); diff --git a/tests/phpunit/tests/ajax/PrivacyExportPersonalData.php b/tests/phpunit/tests/ajax/PrivacyExportPersonalData.php index 739b631009..33a139d569 100644 --- a/tests/phpunit/tests/ajax/PrivacyExportPersonalData.php +++ b/tests/phpunit/tests/ajax/PrivacyExportPersonalData.php @@ -273,15 +273,11 @@ class Tests_Ajax_PrivacyExportPersonalData extends WP_Ajax_UnitTestCase { /** * Test requests do not succeed on multisite when the current user is not a network admin. * - * @group multisite - * * @ticket 43438 + * @group multisite + * @group ms-required */ public function test_error_when_current_user_missing_required_capability_multisite() { - if ( ! is_multisite() ) { - $this->markTestSkipped( 'This test only runs on multisite.' ); - } - revoke_super_admin( get_current_user_id() ); $this->_make_ajax_call();