Skip to content

Commit

Permalink
chore: phpstan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Nov 15, 2024
1 parent 8e6cb5c commit f251ed1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/Functional/HALCircularReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

0 comments on commit f251ed1

Please sign in to comment.