mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
364dfec369
commit
e0359da2c1
@ -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(
|
||||
|
||||
@ -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' );
|
||||
|
||||
@ -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' );
|
||||
|
||||
@ -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' );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user