Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/restoreRevision.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/restoreRevision.php
r35242 r40417 24 24 function test_invalid_username_password() { 25 25 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'username', 'password', $this->revision_id ) ); 26 $this->assertI nstanceOf( 'IXR_Error',$result );26 $this->assertIXRError( $result ); 27 27 $this->assertEquals( 403, $result->code ); 28 28 } … … 32 32 33 33 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'subscriber', 'subscriber', $this->revision_id ) ); 34 $this->assertI nstanceOf( 'IXR_Error',$result );34 $this->assertIXRError( $result ); 35 35 $this->assertEquals( 401, $result->code ); 36 36 } … … 40 40 41 41 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'editor', 'editor', $this->revision_id ) ); 42 $this->assertNotI nstanceOf( 'IXR_Error',$result );42 $this->assertNotIXRError( $result ); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.