Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getComment.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/getComment.php
r39189 r40417 36 36 function test_invalid_username_password() { 37 37 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'username', 'password', self::$parent_comment_id ) ); 38 $this->assertI nstanceOf( 'IXR_Error',$result );38 $this->assertIXRError( $result ); 39 39 $this->assertEquals( 403, $result->code ); 40 40 } … … 44 44 45 45 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'contributor', 'contributor', self::$parent_comment_id ) ); 46 $this->assertI nstanceOf( 'IXR_Error',$result );46 $this->assertIXRError( $result ); 47 47 $this->assertEquals( 403, $result->code ); 48 48 } … … 52 52 53 53 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'editor', 'editor', self::$parent_comment_id ) ); 54 $this->assertNotI nstanceOf( 'IXR_Error',$result );54 $this->assertNotIXRError( $result ); 55 55 56 56 // Check data types … … 88 88 89 89 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'editor', 'editor', self::$child_comment_id ) ); 90 $this->assertNotI nstanceOf( 'IXR_Error',$result );90 $this->assertNotIXRError( $result ); 91 91 92 92 $this->assertEquals( self::$child_comment_id, $result['comment_id'] ); … … 98 98 99 99 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'editor', 'editor', 123456789 ) ); 100 $this->assertI nstanceOf( 'IXR_Error',$result );100 $this->assertIXRError( $result ); 101 101 $this->assertEquals( 404, $result->code ); 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.