From 8c3b27129441cd301e54ac1e48074c493c4c2fb2 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sun, 28 Jan 2018 11:21:31 -0600 Subject: [PATCH] Fix for tests - lat/lon rounding --- tests/AcarsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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