diff --git a/src/FlightRadar24.php b/src/FlightRadar24.php index 14b0343..41e9009 100644 --- a/src/FlightRadar24.php +++ b/src/FlightRadar24.php @@ -346,7 +346,7 @@ public function getAircrafts($refresh = false) if ($id != 'version' && $id != 'full_count') { $this->aircrafts[$id] = array_combine( - [ 'aircraft_id', 'latitude', 'longitude', 'track', 'altitude', 'speed', 'swquawk', 'radar_id', 'type', 'registration', 'last_update', 'origin', 'destination', 'flight', 'onground', 'vspeed', 'callsign', 'reserved' ], + [ 'aircraft_id', 'latitude', 'longitude', 'track', 'altitude', 'speed', 'swquawk', 'radar_id', 'type', 'registration', 'last_update', 'origin', 'destination', 'flight', 'onground', 'vspeed', 'callsign', 'reserved', 'airline' ], $data ); diff --git a/tests/FlightRadar24Test.php b/tests/FlightRadar24Test.php index 8b3cbb0..1aed238 100644 --- a/tests/FlightRadar24Test.php +++ b/tests/FlightRadar24Test.php @@ -21,7 +21,7 @@ public function testGetLoadBalancers() $loadBalancers = $fr24->getLoadBalancers(); $this->assertGreaterThan(0, count($loadBalancers)); - $this->assertContains('krk.data.fr24.com', $loadBalancers); + $this->assertContains('data-live.flightradar24.com', $loadBalancers); } /** @@ -44,9 +44,9 @@ public function testSelectLoadBalancerByIndex() public function testSelectLoadBalancerByHostname() { $fr24 = new FlightRadar24(); - $selectedLoadBalancer = $fr24->selectLoadBalancer('krk.data.fr24.com')->getSelectedLoadBalancer(); + $selectedLoadBalancer = $fr24->selectLoadBalancer('data-live.flightradar24.com')->getSelectedLoadBalancer(); - $this->assertEquals('krk.data.fr24.com', $selectedLoadBalancer['host']); + $this->assertEquals('data-live.flightradar24.com', $selectedLoadBalancer['host']); } /** @@ -196,7 +196,8 @@ public function testGetAircrafts() 'onground', 'vspeed', 'callsign', - 'reserved' + 'reserved', + 'airline', ]; foreach($expectedKeys as $key) {