Changeset 42228 for trunk/tests/phpunit/tests/post/revisions.php
- Timestamp:
- 11/26/2017 11:56:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/revisions.php
r38398 r42228 166 166 $this->assertCount( 1, $revisions ); 167 167 foreach ( $revisions as $revision ) { 168 168 $this->assertTrue( user_can( self::$editor_user_id, 'edit_post', $revision->post_parent ) ); 169 169 } 170 170 171 171 // Author shouldn't be able to restore the revisions 172 172 foreach ( $revisions as $revision ) { 173 173 $this->assertFalse( user_can( self::$author_user_id, 'edit_post', $revision->post_parent ) ); 174 174 } 175 175 } … … 216 216 217 217 foreach ( $revisions as $revision ) { 218 218 $this->assertTrue( user_can( self::$editor_user_id, 'read_post', $revision->ID ) ); 219 219 } 220 220 221 221 // Author should be able to view the revisions fine 222 222 foreach ( $revisions as $revision ) { 223 223 $this->assertTrue( user_can( self::$author_user_id, 'read_post', $revision->ID ) ); 224 224 } 225 225 }
Note: See TracChangeset
for help on using the changeset viewer.