From 11b1c2b76325d943f01af74ac1f783cfd288e275 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 29 Mar 2020 15:19:23 -0400 Subject: [PATCH] Fix tests for API --- tests/AcarsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/AcarsTest.php b/tests/AcarsTest.php index a81fb70e..d43fb1b8 100644 --- a/tests/AcarsTest.php +++ b/tests/AcarsTest.php @@ -484,7 +484,7 @@ class AcarsTest extends TestCase $response = $this->get($uri); $response->assertStatus(200); - $body = $response->json('data'); + $body = $response->json('data')[0]; $this->assertEquals($pirep->id, $body['id']); $this->assertNotEmpty($body['user']['name']);