- Timestamp:
- 02/19/2017 03:18:38 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/tests/phpunit/tests/rest-api/rest-revisions-controller.php
r39126 r40078 28 28 ) ); 29 29 30 wp_set_current_user( self::$editor_id ); 30 31 wp_update_post( array( 'post_content' => 'This content is better.', 'ID' => self::$post_id ) ); 31 32 wp_update_post( array( 'post_content' => 'This content is marvelous.', 'ID' => self::$post_id ) ); 33 wp_set_current_user( 0 ); 32 34 } 33 35 … … 137 139 $data = $response->get_data(); 138 140 $this->assertEqualSets( $fields, array_keys( $data ) ); 141 $this->assertSame( self::$editor_id, $data['author'] ); 139 142 } 140 143
Note: See TracChangeset
for help on using the changeset viewer.