diff --git a/tests/AcarsTest.php b/tests/AcarsTest.php index 1cb66f42..281f5b9d 100644 --- a/tests/AcarsTest.php +++ b/tests/AcarsTest.php @@ -141,8 +141,8 @@ class AcarsTest extends TestCase # Read that if the ACARS record posted $acars_data = $this->get($uri)->json()[0]; - $this->assertEquals(round($acars['lat'], 2), round($body[0]['lat'], 2)); - $this->assertEquals(round($acars['lon'], 2), round($body[0]['lon'], 2)); + $this->assertEquals(round($acars['lat'], 2), round($acars_data['lat'], 2)); + $this->assertEquals(round($acars['lon'], 2), round($acars_data['lon'], 2)); $this->assertEquals($acars['log'], $acars_data['log']); # Make sure PIREP state moved into ENROUTE