WordPress.org

Make WordPress Core

Changeset 34604


Ignore:
Timestamp:
09/26/2015 08:31:57 PM (5 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/uploadFile.php

    r34602 r34604  
    3535        $this->assertInternalType( 'string', $result['type'] );
    3636    }
    37 
    38     /**
    39      * @ticket 21292
    40      */
    41     function test_network_limit() {
    42         $this->make_user_by_role( 'editor' );
    43 
    44         update_option( 'blog_upload_space', 0 );
    45 
    46         // create attachment
    47         $filename = ( DIR_TESTDATA . '/images/canola.jpg' );
    48         $contents = file_get_contents( $filename );
    49         $data = array(
    50             'name' => 'canola.jpg',
    51             'type' => 'image/jpeg',
    52             'bits' => $contents
    53         );
    54 
    55         $result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) );
    56 
    57         // Only multisite should have a limit
    58         if ( is_multisite() ) {
    59             $this->assertInstanceOf( 'IXR_Error', $result );
    60         } else {
    61             $this->assertNotInstanceOf( 'IXR_Error', $result );
    62         }
    63     }
    6437}
Note: See TracChangeset for help on using the changeset viewer.