Ticket #22320: NewGetRecentPostsTest.patch
File NewGetRecentPostsTest.patch, 640 bytes (added by , 12 years ago) |
---|
-
xmlrpc/mw/getRecentPosts.php
29 29 $this->assertEquals( 403, $result->code ); 30 30 } 31 31 32 function test_no_editing_privileges() { 33 $this->make_user_by_role( 'subscriber' ); 34 35 $result = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, 'subscriber', 'subscriber' ) ); 36 $this->assertInstanceOf( 'IXR_Error', $result ); 37 $this->assertEquals( 401, $result->code ); 38 } 39 32 40 function test_no_editable_posts() { 33 41 wp_delete_post( $this->post_id ); 34 42