Tests: Don't skip some Ajax tests on multisite, add them to the ms-excluded group instead.

Follow-up to [46693], [49835].

See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-09-26 00:12:56 +00:00
parent 364dfec369
commit e0359da2c1
4 changed files with 13 additions and 6 deletions

View File

@ -63,10 +63,9 @@ class Tests_Ajax_Attachments extends WP_Ajax_UnitTestCase {
/**
* @ticket 36578
* @group ms-excluded
*/
public function test_wp_ajax_send_attachment_to_editor_should_return_a_link() {
$this->skipWithMultisite();
// Become an administrator.
$post = $_POST;
$user_id = self::factory()->user->create(

View File

@ -125,8 +125,10 @@ class Tests_Ajax_Delete_Plugin extends WP_Ajax_UnitTestCase {
$this->assertSameSets( $expected, $response );
}
/**
* @group ms-excluded
*/
public function test_delete_plugin() {
$this->skipWithMultisite();
$this->_setRole( 'administrator' );
$_POST['_ajax_nonce'] = wp_create_nonce( 'updates' );

View File

@ -101,8 +101,10 @@ class Tests_Ajax_Manage_Themes extends WP_Ajax_UnitTestCase {
$this->assertSameSets( $expected, $response );
}
/**
* @group ms-excluded
*/
public function test_update_theme() {
$this->skipWithMultisite();
$this->_setRole( 'administrator' );
$_POST['_ajax_nonce'] = wp_create_nonce( 'updates' );
@ -139,8 +141,10 @@ class Tests_Ajax_Manage_Themes extends WP_Ajax_UnitTestCase {
$this->assertSameSets( $expected, $response );
}
/**
* @group ms-excluded
*/
function test_uppercase_theme_slug() {
$this->skipWithMultisite();
$this->_setRole( 'administrator' );
$_POST['_ajax_nonce'] = wp_create_nonce( 'updates' );

View File

@ -129,8 +129,10 @@ class Tests_Ajax_Update_Plugin extends WP_Ajax_UnitTestCase {
$this->assertSameSets( $expected, $response );
}
/**
* @group ms-excluded
*/
public function test_update_plugin() {
$this->skipWithMultisite();
$this->_setRole( 'administrator' );
$_POST['_ajax_nonce'] = wp_create_nonce( 'updates' );