- Timestamp:
- 11/10/2016 02:20:09 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php
r39097 r39191 120 120 $data = $response->get_data(); 121 121 $properties = $data['schema']['properties']; 122 $this->assertEquals( 7, count( $properties ) );122 $this->assertEquals( 8, count( $properties ) ); 123 123 $this->assertArrayHasKey( 'capabilities', $properties ); 124 124 $this->assertArrayHasKey( 'description', $properties ); … … 128 128 $this->assertArrayHasKey( 'slug', $properties ); 129 129 $this->assertArrayHasKey( 'taxonomies', $properties ); 130 $this->assertArrayHasKey( 'rest_base', $properties ); 130 131 } 131 132 … … 171 172 $this->assertEquals( $post_type_obj->description, $data['description'] ); 172 173 $this->assertEquals( $post_type_obj->hierarchical, $data['hierarchical'] ); 174 $this->assertEquals( $post_type_obj->rest_base, $data['rest_base'] ); 173 175 174 176 $links = test_rest_expand_compact_links( $links );
Note: See TracChangeset
for help on using the changeset viewer.