request('GET', '/v4/projects'); $this->assertResponseIsSuccessful(); $this->assertJsonContains(['@id' => '/v4/projects']); $this->assertJsonContains(['hydra:member' => []]); } public function testPostUnauthorized(): void { $client = static::createClient(); $client->request( 'POST', '/v4/projects', ['json' => [ 'title' => 'ProjectApiTest Project', ]] ); $this->assertResponseStatusCodeSame(Response::HTTP_UNAUTHORIZED); } }