- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-revisions-controller.php
r43087 r43571 246 246 $revision = get_post( $this->revision_id1 ); 247 247 $response = $endpoint->prepare_item_for_response( $revision, $request ); 248 $this->assertEquals( array( 249 'id', 250 'slug', 251 ), array_keys( $response->get_data() ) ); 248 $this->assertEquals( 249 array( 250 'id', 251 'slug', 252 ), 253 array_keys( $response->get_data() ) 254 ); 252 255 } 253 256 … … 294 297 295 298 register_rest_field( 296 'post-revision', 'my_custom_int', array( 299 'post-revision', 300 'my_custom_int', 301 array( 297 302 'schema' => $schema, 298 303 'get_callback' => array( $this, 'additional_field_get_callback' ),
Note: See TracChangeset
for help on using the changeset viewer.