Option for SB only on bids; add the new file type #642 (#643)

Option for SB only on bids; add the new file type #642
This commit is contained in:
Nabeel S
2020-03-27 11:49:19 -04:00
committed by GitHub
parent f3fe3a56ba
commit 4a3ec38919
15 changed files with 746 additions and 56 deletions

View File

@@ -23,7 +23,10 @@ class SimBriefTest extends TestCase
'arr_airport_id' => 'OMDB',
]);
$this->mockXmlResponse('briefing.xml');
$this->mockXmlResponse([
'simbrief/briefing.xml',
'simbrief/acars_briefing.xml',
]);
/** @var SimBriefService $sb */
$sb = app(SimBriefService::class);
@@ -44,7 +47,7 @@ class SimBriefTest extends TestCase
// Spot check reading of the files
$files = $briefing->files;
$this->assertEquals(45, $files->count());
$this->assertEquals(47, $files->count());
$this->assertEquals(
'http://www.simbrief.com/ofp/flightplans/OMAAOMDB_PDF_1584226092.pdf',
$files->firstWhere('name', 'PDF Document')['url']