Skip to content

Commit

Permalink
assert new schema path
Browse files Browse the repository at this point in the history
  • Loading branch information
narcoticfresh committed Mar 20, 2024
1 parent 6c28546 commit e358170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Rest/Controller/ShowcaseControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ public function testCorrectIdExposingInSchema()
$schema = $client->getResults();

// get the nested app schema
$nestedAppSchema = $schema->components->schemas->{'ShowCaseNestedApps'};
$nestedAppSchema = $schema->components->schemas->{'ShowCaseShowCaseNestedApps'};
$this->assertIsObject($nestedAppSchema);

// make sure we have an extref field here
Expand All @@ -1002,7 +1002,7 @@ public function testCorrectIdExposingInSchema()
$this->assertObjectNotHasProperty('id', $nestedAppSchema->properties);

// embed case - check the embedded 'contactCode'
$contactCodeSchema = $schema->components->schemas->{'ShowCaseContactCode'};
$contactCodeSchema = $schema->components->schemas->{'ShowCaseShowCaseContactCode'};
$this->assertIsObject($contactCodeSchema);

//$this->assertStringEndsWith('Embedded', $schema->properties->contactCode->{'x-documentClass'});
Expand Down

0 comments on commit e358170

Please sign in to comment.