Ticket #9843: tests_1213.patch
File tests_1213.patch, 720 bytes (added by , 12 years ago) |
---|
-
tests/post/revisions.php
278 278 $this->assertTrue( current_user_can( 'edit_post', $revision->ID ) ); 279 279 } 280 280 281 wp_update_post( array( 'post_status' => 'publish', 'ID' => $post_id ) );281 wp_update_post( array( 'post_status' => 'publish', 'ID' => $post_id, 'post_content' => 'Even better content' ) ); 282 282 283 283 $revisions = wp_get_post_revisions( $post_id ); 284 284 $this->assertCount( 2, $revisions ); … … 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 }