create(); $this->getAs('api/artists') ->assertJsonStructure(ArtistResource::PAGINATION_JSON_STRUCTURE); } public function testShow(): void { /** @var Artist $artist */ $artist = Artist::factory()->create(); $this->getAs('api/artists/' . $artist->id) ->assertJsonStructure(ArtistResource::JSON_STRUCTURE); } }