Fix API tests
This commit is contained in:
parent
11b1c2b763
commit
6978fbf2e0
@ -484,9 +484,9 @@ class AcarsTest extends TestCase
|
|||||||
$response = $this->get($uri);
|
$response = $this->get($uri);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
$body = $response->json('data')[0];
|
$body = collect($response->json('data'));
|
||||||
|
$body = $body->firstWhere('id', $pirep['id']);
|
||||||
|
|
||||||
$this->assertEquals($pirep->id, $body['id']);
|
|
||||||
$this->assertNotEmpty($body['user']['name']);
|
$this->assertNotEmpty($body['user']['name']);
|
||||||
$this->assertNotEmpty($body['user']['avatar']);
|
$this->assertNotEmpty($body['user']['avatar']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user