Skip to content

Commit

Permalink
Revert introducing title in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Dec 22, 2023
1 parent 546ea1f commit 7e40ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function get_item_schema() {
unset( $schema['properties']['slug'] );
unset( $schema['properties']['meta'] );
unset( $schema['properties']['content'] );
unset( $schema['properties']['excerpt'] );
unset( $schema['properties']['title'] );

$this->schema = $schema;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,9 @@ public function test_get_item_schema() {
$data = $response->get_data();
$properties = $data['schema']['properties'];

$this->assertCount( 10, $properties, 'Schema properties array has exactly 10 elements.' );
$this->assertCount( 9, $properties, 'Schema properties array has exactly 9 elements.' );
$this->assertArrayHasKey( 'id', $properties, 'Schema properties array has "id" key.' );
$this->assertArrayHasKey( 'styles', $properties, 'Schema properties array has "styles" key.' );
$this->assertArrayHasKey( 'title', $properties, 'Schema properties array has "title" key.' );
$this->assertArrayHasKey( 'settings', $properties, 'Schema properties array has "settings" key.' );
$this->assertArrayHasKey( 'parent', $properties, 'Schema properties array has "parent" key.' );
$this->assertArrayHasKey( 'author', $properties, 'Schema properties array has "author" key.' );
Expand Down

0 comments on commit 7e40ac4

Please sign in to comment.