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
This commit is contained in:
parent
fcf86b80b6
commit
243d1a2e38
@ -98,6 +98,7 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
|
||||
* Tests the priority parameter for menu helper functions.
|
||||
*
|
||||
* @ticket 39776
|
||||
* @group ms-excluded
|
||||
*
|
||||
* @covers ::add_management_page
|
||||
* @covers ::add_options_page
|
||||
@ -120,11 +121,6 @@ class Tests_Admin_includesPlugin extends WP_UnitTestCase {
|
||||
global $submenu;
|
||||
global $menu;
|
||||
|
||||
// Skip for multisite.
|
||||
if ( is_multisite() ) {
|
||||
$this->markTestSkipped( 'This test is intended for single site.' );
|
||||
}
|
||||
|
||||
// Reset menus.
|
||||
$submenu = array();
|
||||
$menu = array();
|
||||
|
@ -576,12 +576,9 @@ class Tests_User extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 45747
|
||||
* @group ms-excluded
|
||||
*/
|
||||
function test_wp_update_user_should_not_mark_user_as_spam_on_single_site() {
|
||||
if ( is_multisite() ) {
|
||||
$this->markTestSkipped( 'This test is intended for single site.' );
|
||||
}
|
||||
|
||||
$u = wp_update_user(
|
||||
array(
|
||||
'ID' => self::$contrib_id,
|
||||
|
Loading…
Reference in New Issue
Block a user