Skip to content

Commit 953ec19

Browse files
committed
tests: remove output suffix after reverting
1 parent 8365310 commit 953ec19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function testBackedEnumExamplesAreNotLost(): void
280280
$this->tester->run(['command' => 'api:json-schema:generate', 'resource' => 'ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue6317\Issue6317', '--type' => 'output', '--format' => 'jsonld']);
281281
$result = $this->tester->getDisplay();
282282
$json = json_decode($result, associative: true);
283-
$properties = $json['definitions']['Issue6317.jsonld.output']['properties'];
283+
$properties = $json['definitions']['Issue6317.jsonld']['properties'];
284284

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

300300
$this->assertSame(
301301
[

tests/Symfony/Bundle/Command/OpenApiCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function testBackedEnumExamplesAreNotLost(): void
134134
};
135135

136136
$assertExample($json['components']['schemas']['Issue6317']['properties'], 'id');
137-
$assertExample($json['components']['schemas']['Issue6317.jsonld.output']['properties'], 'id');
137+
$assertExample($json['components']['schemas']['Issue6317.jsonld']['properties'], 'id');
138138
$assertExample($json['components']['schemas']['Issue6317.jsonapi']['properties']['data']['properties']['attributes']['properties'], '_id');
139139
$assertExample($json['components']['schemas']['Issue6317.jsonhal']['properties'], 'id');
140140
}

0 commit comments

Comments
 (0)