Ticket #9843: tests_1213.2.patch
File tests_1213.2.patch, 761 bytes (added by , 12 years ago) |
---|
-
tests/post/revisions.php
281 281 wp_update_post( array( 'post_status' => 'publish', 'ID' => $post_id ) ); 282 282 283 283 $revisions = wp_get_post_revisions( $post_id ); 284 $this->assertCount( 2, $revisions );284 $this->assertCount( 1, $revisions ); 285 285 foreach ( $revisions as $revision ) { 286 286 $this->assertFalse( current_user_can( 'edit_post', $revision->post_parent ) ); 287 287 $this->assertFalse( current_user_can( 'edit_post', $revision->ID ) ); … … 319 319 $this->assertTrue( user_can( $author_user_id, 'read_post', $revision->ID ) ); 320 320 } 321 321 } 322 } 323 No newline at end of file 322 }