WordPress.org

Make WordPress Core

Ticket #20982: 20982.fix-unit-test.patch

File 20982.fix-unit-test.patch, 733 bytes (added by ocean90, 12 months ago)
  • trunk/tests/post/revisions.php

     
    4747                wp_restore_post_revision( $lastrevision->ID ); 
    4848 
    4949                //is post_meta correctly set to revision author 
    50                 $this->assertEquals( $author_user_id, get_post_meta( $post_id, '_edit_last', true ) ); //after restoring user 
     50                $this->assertEquals( $admin_user_id, get_post_meta( $post_id, '_edit_last', true ) ); //after restoring user 
    5151 
    5252                wp_set_current_user( 0 ); 
    5353        } 
     
    323323                        $this->assertTrue( user_can( $author_user_id, 'read_post', $revision->ID ) ); 
    324324                } 
    325325        } 
    326 } 
    327  No newline at end of file 
     326}