createSegment('fetch_segment_logic'); // A C T $response = $this->actingAsAdmin() ->getJson("/api/v1/segment/{$segment->id}/show"); // A S S E R T $response->assertStatus(200); $response->assertJsonPath('payload.data.id', $segment->id); $response->assertJsonPath('payload.data.name', 'Fetch Segment Logic'); $response->assertJsonPath('payload.data.price', 0); } }