- Timestamp:
- 09/21/2022 12:27:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php
r54269 r54273 168 168 $properties = $data['schema']['properties']; 169 169 170 $this->assertCount( 1 3, $properties, 'Schema should have 13properties' );170 $this->assertCount( 14, $properties, 'Schema should have 14 properties' ); 171 171 $this->assertArrayHasKey( 'capabilities', $properties, '`capabilities` should be included in the schema' ); 172 172 $this->assertArrayHasKey( 'description', $properties, '`description` should be included in the schema' ); … … 177 177 $this->assertArrayHasKey( 'slug', $properties, '`slug` should be included in the schema' ); 178 178 $this->assertArrayHasKey( 'supports', $properties, '`supports` should be included in the schema' ); 179 $this->assertArrayHasKey( 'has_archive', $properties, '`has_archive` should be included in the schema' ); 179 180 $this->assertArrayHasKey( 'taxonomies', $properties, '`taxonomies` should be included in the schema' ); 180 181 $this->assertArrayHasKey( 'rest_base', $properties, '`rest_base` should be included in the schema' ); … … 231 232 $this->assertSame( $post_type_obj->rest_base, $data['rest_base'] ); 232 233 $this->assertSame( $post_type_obj->rest_namespace, $data['rest_namespace'] ); 234 $this->assertSame( $post_type_obj->has_archive, $data['has_archive'] ); 233 235 234 236 $links = test_rest_expand_compact_links( $links );
Note: See TracChangeset
for help on using the changeset viewer.