WordPress.org

Make WordPress Core

Ticket #9843: tests_1213.patch

File tests_1213.patch, 720 bytes (added by soulseekah, 7 years ago)
  • tests/post/revisions.php

     
    278278                        $this->assertTrue( current_user_can( 'edit_post', $revision->ID ) );
    279279                }
    280280
    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' ) );
    282282
    283283                $revisions = wp_get_post_revisions( $post_id );
    284284                $this->assertCount( 2, $revisions );
     
    319319                        $this->assertTrue( user_can( $author_user_id, 'read_post', $revision->ID ) );
    320320                }
    321321        }
    322 }
    323  No newline at end of file
     322}