diff --git a/tests/Functional/HALCircularReference.php b/tests/Functional/HALCircularReference.php index 1e02758dd92..40555976705 100644 --- a/tests/Functional/HALCircularReference.php +++ b/tests/Functional/HALCircularReference.php @@ -14,23 +14,13 @@ namespace ApiPlatform\Tests\Functional; use ApiPlatform\Symfony\Bundle\Test\ApiTestCase; -use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue4358\ResourceA; -use ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue4358\ResourceB; -use ApiPlatform\Tests\SetupClassResourcesTrait; class HALCircularReference extends ApiTestCase { - use SetupClassResourcesTrait; - public function testIssue4358(): void { $r1 = self::createClient()->request('GET', '/resource_a', ['headers' => ['Accept' => 'application/hal+json']]); self::assertResponseIsSuccessful(); self::assertEquals('{"_links":{"self":{"href":"\/resource_a"},"b":{"href":"\/resource_b"}},"_embedded":{"b":{"_links":{"self":{"href":"\/resource_b"},"a":{"href":"\/resource_a"}},"_embedded":{"a":{"_links":{"self":{"href":"\/resource_a"}}}}}}}', $r1->getContent()); } - - public static function getResources(): array - { - return [ResourceA::class, ResourceB::class]; - } }