Ticket #20982: 20982.fix-unit-test.patch
File 20982.fix-unit-test.patch, 733 bytes (added by , 12 years ago) |
---|
-
trunk/tests/post/revisions.php
47 47 wp_restore_post_revision( $lastrevision->ID ); 48 48 49 49 //is post_meta correctly set to revision author 50 $this->assertEquals( $a uthor_user_id, get_post_meta( $post_id, '_edit_last', true ) ); //after restoring user50 $this->assertEquals( $admin_user_id, get_post_meta( $post_id, '_edit_last', true ) ); //after restoring user 51 51 52 52 wp_set_current_user( 0 ); 53 53 } … … 323 323 $this->assertTrue( user_can( $author_user_id, 'read_post', $revision->ID ) ); 324 324 } 325 325 } 326 } 327 No newline at end of file 326 }