- Timestamp:
- 03/26/2019 12:45:57 AM (6 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 29860,29869,29954,30160,30530
- Property svn:mergeinfo changed
-
branches/4.0/tests/phpunit/tests/xmlrpc/wp/uploadFile.php
r30288 r45013 30 30 } 31 31 32 /**33 * @ticket 2129234 */35 function test_network_limit() {36 $this->make_user_by_role( 'editor' );37 38 update_option( 'blog_upload_space', 0.1 );39 40 // create attachment41 $filename = ( DIR_TESTDATA . '/images/canola.jpg' );42 $contents = file_get_contents( $filename );43 $data = array(44 'name' => 'canola.jpg',45 'type' => 'image/jpeg',46 'bits' => $contents47 );48 49 $result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) );50 51 // Only multisite should have a limit52 if ( is_multisite() )53 $this->assertInstanceOf( 'IXR_Error', $result );54 else55 $this->assertNotInstanceOf( 'IXR_Error', $result );56 }57 58 32 }
Note: See TracChangeset
for help on using the changeset viewer.