Changeset 42343 for trunk/tests/phpunit/tests/xmlrpc/wp/uploadFile.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/uploadFile.php
r40417 r42343 18 18 $filename = ( DIR_TESTDATA . '/images/a2-small.jpg' ); 19 19 $contents = file_get_contents( $filename ); 20 $data = array(20 $data = array( 21 21 'name' => 'a2-small.jpg', 22 22 'type' => 'image/jpeg', 23 'bits' => $contents 23 'bits' => $contents, 24 24 ); 25 26 25 27 26 $result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) );
Note: See TracChangeset
for help on using the changeset viewer.