From 953ec19ed2249cc4a0f67f14174f7fcc9302db39 Mon Sep 17 00:00:00 2001 From: soyuka Date: Sat, 20 Jul 2024 11:27:43 +0200 Subject: [PATCH] tests: remove output suffix after reverting --- tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php | 4 ++-- tests/Symfony/Bundle/Command/OpenApiCommandTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php b/tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php index cbaff3a0cb2..c84baa4aafc 100644 --- a/tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php +++ b/tests/JsonSchema/Command/JsonSchemaGenerateCommandTest.php @@ -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']); @@ -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( [ diff --git a/tests/Symfony/Bundle/Command/OpenApiCommandTest.php b/tests/Symfony/Bundle/Command/OpenApiCommandTest.php index b09d7ae7f65..cf68f461997 100644 --- a/tests/Symfony/Bundle/Command/OpenApiCommandTest.php +++ b/tests/Symfony/Bundle/Command/OpenApiCommandTest.php @@ -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'); }