Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
- Timestamp:
- 04/12/2017 02:58:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.php
r39189 r40417 39 39 function test_invalid_username_password() { 40 40 $result = $this->myxmlrpcserver->wp_getMediaItem( array( 1, 'username', 'password', 0 ) ); 41 $this->assertI nstanceOf( 'IXR_Error',$result );41 $this->assertIXRError( $result ); 42 42 $this->assertEquals( 403, $result->code ); 43 43 } … … 48 48 $fields = array( 'post' ); 49 49 $result = $this->myxmlrpcserver->wp_getMediaItem( array( 1, 'author', 'author', $this->attachment_id, $fields ) ); 50 $this->assertNotI nstanceOf( 'IXR_Error',$result );50 $this->assertNotIXRError( $result ); 51 51 52 52 // Check data types
Note: See TracChangeset
for help on using the changeset viewer.