From 19b0ea5a8c854572e08baf79d24ae7d243ae744d Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 26 Sep 2015 20:31:57 +0000 Subject: [PATCH] Remove failing xmlrpc upload test. This test was added [34577], but shouldn't have been, because the bug it describes has not been fixed. See #21292. git-svn-id: https://develop.svn.wordpress.org/trunk@34604 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/xmlrpc/wp/uploadFile.php | 27 -------------------- 1 file changed, 27 deletions(-) diff --git a/tests/phpunit/tests/xmlrpc/wp/uploadFile.php b/tests/phpunit/tests/xmlrpc/wp/uploadFile.php index a303ffc123..8baa3f6cff 100644 --- a/tests/phpunit/tests/xmlrpc/wp/uploadFile.php +++ b/tests/phpunit/tests/xmlrpc/wp/uploadFile.php @@ -34,31 +34,4 @@ class Tests_XMLRPC_wp_uploadFile extends WP_XMLRPC_UnitTestCase { $this->assertInternalType( 'string', $result['url'] ); $this->assertInternalType( 'string', $result['type'] ); } - - /** - * @ticket 21292 - */ - function test_network_limit() { - $this->make_user_by_role( 'editor' ); - - update_option( 'blog_upload_space', 0 ); - - // create attachment - $filename = ( DIR_TESTDATA . '/images/canola.jpg' ); - $contents = file_get_contents( $filename ); - $data = array( - 'name' => 'canola.jpg', - 'type' => 'image/jpeg', - 'bits' => $contents - ); - - $result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) ); - - // Only multisite should have a limit - if ( is_multisite() ) { - $this->assertInstanceOf( 'IXR_Error', $result ); - } else { - $this->assertNotInstanceOf( 'IXR_Error', $result ); - } - } }