From f97eaedafd1e434801dc370229ab8148faed3d0f Mon Sep 17 00:00:00 2001 From: soyuka Date: Sun, 1 Dec 2024 11:22:40 +0100 Subject: [PATCH] attempt to test #6810 --- .../Issue6810/JsonLdContextOutput.php | 20 +++++++++++++++++++ .../ApiResource/Issue6810/Output.php | 8 ++++++++ tests/Functional/JsonLd.php | 20 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 tests/Fixtures/TestBundle/ApiResource/Issue6810/JsonLdContextOutput.php create mode 100644 tests/Fixtures/TestBundle/ApiResource/Issue6810/Output.php diff --git a/tests/Fixtures/TestBundle/ApiResource/Issue6810/JsonLdContextOutput.php b/tests/Fixtures/TestBundle/ApiResource/Issue6810/JsonLdContextOutput.php new file mode 100644 index 00000000000..26e7a4c5882 --- /dev/null +++ b/tests/Fixtures/TestBundle/ApiResource/Issue6810/JsonLdContextOutput.php @@ -0,0 +1,20 @@ +assertEquals('Bar two', $res['title']); } + public function testContextWithOutput(): void + { + $response = self::createClient()->request('GET', '/json_ld_context_output'); + $res = $response->toArray(); + dd($res); + } + protected function setUp(): void { self::bootKernel();