Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getRevisions.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/getRevisions.php
r35242 r40417 8 8 function test_invalid_username_password() { 9 9 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'username', 'password', 0 ) ); 10 $this->assertI nstanceOf( 'IXR_Error',$result );10 $this->assertIXRError( $result ); 11 11 $this->assertEquals( 403, $result->code ); 12 12 } … … 18 18 19 19 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'subscriber', 'subscriber', $post_id ) ); 20 $this->assertI nstanceOf( 'IXR_Error',$result );20 $this->assertIXRError( $result ); 21 21 $this->assertEquals( 401, $result->code ); 22 22 } … … 27 27 $post_id = self::factory()->post->create(); 28 28 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 29 $this->assertNotI nstanceOf( 'IXR_Error',$result );29 $this->assertNotIXRError( $result ); 30 30 } 31 31
Note: See TracChangeset
for help on using the changeset viewer.