Tests: Don't skip the tests intended for Multisite when running on single site, add them to the `ms-required` group instead.

See #43438.

git-svn-id: https://develop.svn.wordpress.org/trunk@46693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-11-10 01:53:17 +00:00
parent a31133173d
commit 1b82ea8284
2 changed files with 4 additions and 12 deletions

View File

@ -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();

View File

@ -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();