WordPress.org

Make WordPress Core

Ticket #9843: tests_1213.2.patch

File tests_1213.2.patch, 761 bytes (added by soulseekah, 7 years ago)

alternative

  • tests/post/revisions.php

     
    281281                wp_update_post( array( 'post_status' => 'publish', 'ID' => $post_id ) );
    282282
    283283                $revisions = wp_get_post_revisions( $post_id );
    284                 $this->assertCount( 2, $revisions );
     284                $this->assertCount( 1, $revisions );
    285285                foreach ( $revisions as $revision ) {
    286286                        $this->assertFalse( current_user_can( 'edit_post', $revision->post_parent ) );
    287287                        $this->assertFalse( current_user_can( 'edit_post', $revision->ID ) );
     
    319319                        $this->assertTrue( user_can( $author_user_id, 'read_post', $revision->ID ) );
    320320                }
    321321        }
    322 }
    323  No newline at end of file
     322}