Fix tests for API

This commit is contained in:
Nabeel Shahzad 2020-03-29 15:19:23 -04:00
parent 655ac66b52
commit 11b1c2b763

View File

@ -484,7 +484,7 @@ class AcarsTest extends TestCase
$response = $this->get($uri); $response = $this->get($uri);
$response->assertStatus(200); $response->assertStatus(200);
$body = $response->json('data'); $body = $response->json('data')[0];
$this->assertEquals($pirep->id, $body['id']); $this->assertEquals($pirep->id, $body['id']);
$this->assertNotEmpty($body['user']['name']); $this->assertNotEmpty($body['user']['name']);