Skip to content

Commit

Permalink
tests: remove output suffix after reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Jul 20, 2024
1 parent 8365310 commit 953ec19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function testBackedEnumExamplesAreNotLost(): void
$this->tester->run(['command' => 'api:json-schema:generate', 'resource' => 'ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6317\Issue6317', '--type' => 'output', '--format' => 'jsonld']);
$result = $this->tester->getDisplay();
$json = json_decode($result, associative: true);
$properties = $json['definitions']['Issue6317.jsonld.output']['properties'];
$properties = $json['definitions']['Issue6317.jsonld']['properties'];

$this->assertArrayHasKey('example', $properties['id']);
$this->assertArrayHasKey('example', $properties['name']);
Expand All @@ -295,7 +295,7 @@ public function testResourceWithEnumPropertiesSchema(): void
$this->tester->run(['command' => 'api:json-schema:generate', 'resource' => 'ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\ResourceWithEnumProperty', '--type' => 'output', '--format' => 'jsonld']);
$result = $this->tester->getDisplay();
$json = json_decode($result, associative: true);
$properties = $json['definitions']['ResourceWithEnumProperty.jsonld.output']['properties'];
$properties = $json['definitions']['ResourceWithEnumProperty.jsonld']['properties'];

$this->assertSame(
[
Expand Down
2 changes: 1 addition & 1 deletion tests/Symfony/Bundle/Command/OpenApiCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function testBackedEnumExamplesAreNotLost(): void
};

$assertExample($json['components']['schemas']['Issue6317']['properties'], 'id');
$assertExample($json['components']['schemas']['Issue6317.jsonld.output']['properties'], 'id');
$assertExample($json['components']['schemas']['Issue6317.jsonld']['properties'], 'id');
$assertExample($json['components']['schemas']['Issue6317.jsonapi']['properties']['data']['properties']['attributes']['properties'], '_id');
$assertExample($json['components']['schemas']['Issue6317.jsonhal']['properties'], 'id');
}
Expand Down

0 comments on commit 953ec19

Please sign in to comment.