Remove failing uploadfile test in trunk
The test has been added to #11946 and can be readded when that ticket is fixed. Props MikeHansenMe for creating patch of current unit test See #30284 git-svn-id: https://develop.svn.wordpress.org/trunk@30289 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68f8703893
commit
e7e27c2e4d
@ -54,26 +54,4 @@ class Tests_XMLRPC_wp_uploadFile extends WP_XMLRPC_UnitTestCase {
|
||||
else
|
||||
$this->assertNotInstanceOf( 'IXR_Error', $result );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 11946
|
||||
*/
|
||||
function test_valid_mime() {
|
||||
$this->make_user_by_role( 'editor' );
|
||||
|
||||
// create attachment
|
||||
$filename = ( DIR_TESTDATA . '/images/test-image-mime-jpg.png' );
|
||||
$contents = file_get_contents( $filename );
|
||||
$data = array(
|
||||
'name' => 'test-image-mime-jpg.png',
|
||||
'type' => 'image/png',
|
||||
'bits' => $contents
|
||||
);
|
||||
|
||||
$result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) );
|
||||
|
||||
$this->assertNotInstanceOf( 'IXR_Error', $result );
|
||||
|
||||
$this->assertEquals( 'image/jpeg', $result['type'] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user