From 61c5fabff4baff2e2e6f0aa1241b38ffff12da79 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Fri, 17 Jan 2025 13:25:36 +0100 Subject: [PATCH] Update hydra convention in test --- tests/Entity/ProjectApiTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Entity/ProjectApiTest.php b/tests/Entity/ProjectApiTest.php index 278ad27..7a3d1eb 100644 --- a/tests/Entity/ProjectApiTest.php +++ b/tests/Entity/ProjectApiTest.php @@ -29,9 +29,9 @@ class ProjectApiTest extends ApiTestCase $this->assertResponseIsSuccessful(); $this->assertJsonContains(['@id' => '/v4/projects']); - $this->assertJsonContains(['@type' => 'hydra:Collection']); - $this->assertJsonContains(['hydra:totalItems' => 0]); - $this->assertJsonContains(['hydra:member' => []]); + $this->assertJsonContains(['@type' => 'Collection']); + $this->assertJsonContains(['totalItems' => 0]); + $this->assertJsonContains(['member' => []]); $owner = new User(); $owner->setUsername('test_user'); @@ -50,8 +50,8 @@ class ProjectApiTest extends ApiTestCase static::createClient()->request('GET', '/v4/projects'); $this->assertResponseIsSuccessful(); - $this->assertJsonContains(['hydra:totalItems' => 1]); - $this->assertJsonContains(['hydra:member' => [ + $this->assertJsonContains(['totalItems' => 1]); + $this->assertJsonContains(['member' => [ [ 'title' => 'Test Project', 'status' => ProjectStatus::InEditing->value,