loginAs($this->user); $this->assertResponseIsSuccessful(); $this->get('/api/cotisations/1'); $this->assertResponseStatusCodeSame(200); $this->assertJsonContains([ '@context' => '/api/contexts/Cotisation', '@id' => '/api/cotisations/1', '@type' => 'Cotisation', 'organizationId' => 1, 'alertState' => 'null', 'cotisationYear' => 2021 ]); } }