Fix METAR invalid parameter #738 (#743)

This commit is contained in:
Nabeel S
2020-06-04 03:30:35 -07:00
committed by GitHub
parent 82bae9cc74
commit 519ae600d5
3 changed files with 43 additions and 3 deletions

View File

@@ -173,6 +173,14 @@ class MetarTest extends TestCase
$this->assertInstanceOf(Metar::class, $airportSvc->getMetar('kjfk'));
}
public function testHttpCallSuccessFullResponse()
{
$this->mockXmlResponse('aviationweather/kphx.xml');
$airportSvc = app(AirportService::class);
$this->assertInstanceOf(Metar::class, $airportSvc->getMetar('kphx'));
}
public function testHttpCallEmpty()
{
$this->mockXmlResponse('aviationweather/empty.xml');