Skip to content

Commit 243d1a2

Browse files
Test: Don't skip the tests intended for single site when running on Multisite, add them to the ms-excluded group instead.
See #39776, #45747. git-svn-id: https://develop.svn.wordpress.org/trunk@46683 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fcf86b8 commit 243d1a2

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

tests/phpunit/tests/admin/includesPlugin.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function test_submenu_priority( $priority, $expected_position ) {
9898
* Tests the priority parameter for menu helper functions.
9999
*
100100
* @ticket 39776
101+
* @group ms-excluded
101102
*
102103
* @covers ::add_management_page
103104
* @covers ::add_options_page
@@ -120,11 +121,6 @@ function test_submenu_helpers_priority( $priority, $expected_position ) {
120121
global $submenu;
121122
global $menu;
122123

123-
// Skip for multisite.
124-
if ( is_multisite() ) {
125-
$this->markTestSkipped( 'This test is intended for single site.' );
126-
}
127-
128124
// Reset menus.
129125
$submenu = array();
130126
$menu = array();

tests/phpunit/tests/user.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,12 +576,9 @@ function test_wp_update_user_should_not_change_password_when_passed_WP_User_inst
576576

577577
/**
578578
* @ticket 45747
579+
* @group ms-excluded
579580
*/
580581
function test_wp_update_user_should_not_mark_user_as_spam_on_single_site() {
581-
if ( is_multisite() ) {
582-
$this->markTestSkipped( 'This test is intended for single site.' );
583-
}
584-
585582
$u = wp_update_user(
586583
array(
587584
'ID' => self::$contrib_id,

0 commit comments

Comments
 (0)