- Timestamp:
- 08/17/2018 01:50:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php
r43087 r43571 87 87 'slug', 88 88 'status', 89 ), $keys 89 ), 90 $keys 90 91 ); 91 92 } … … 466 467 $obj = get_post( $page_id ); 467 468 $response = $endpoint->prepare_item_for_response( $obj, $request ); 468 $this->assertEquals( array( 469 'id', 470 'slug', 471 ), array_keys( $response->get_data() ) ); 469 $this->assertEquals( 470 array( 471 'id', 472 'slug', 473 ), 474 array_keys( $response->get_data() ) 475 ); 472 476 } 473 477 474 478 public function test_get_pages_params() { 475 479 $this->factory->post->create_many( 476 8, array( 480 8, 481 array( 477 482 'post_type' => 'page', 478 483 )
Note: See TracChangeset
for help on using the changeset viewer.