Bids are missing subfleets in API response #867 (#868)

Bids are missing subfleets in API response #867
This commit is contained in:
Nabeel S
2020-10-12 12:49:11 -04:00
committed by GitHub
parent 193fbd369d
commit dc007f6d9e
7 changed files with 100 additions and 23 deletions

View File

@@ -47,7 +47,7 @@ class SimBriefTest extends TestCase
*/
public function testReadSimbrief()
{
$this->user = factory(User::class)->create();
$this->user = $this->createUser();
$briefing = $this->loadSimBrief($this->user);
$this->assertNotEmpty($briefing->ofp_xml);
@@ -86,7 +86,7 @@ class SimBriefTest extends TestCase
*/
public function testApiCalls()
{
$this->user = factory(User::class)->create();
$this->user = $this->createUser();
$briefing = $this->loadSimBrief($this->user);
// Check the flight API response
@@ -120,7 +120,7 @@ class SimBriefTest extends TestCase
*/
public function testUserBidSimbrief()
{
$this->user = factory(User::class)->create();
$this->user = $this->createUser();
$this->loadSimBrief($this->user);
// Find the flight
@@ -136,7 +136,7 @@ class SimBriefTest extends TestCase
public function testAttachToPirep()
{
$user = factory(User::class)->create();
$user = $this->createUser();
$pirep = factory(Pirep::class)->create([
'user_id' => $user->id,
'dpt_airport_id' => 'OMAA',
@@ -172,7 +172,7 @@ class SimBriefTest extends TestCase
*/
public function testClearExpiredBriefs()
{
$user = factory(User::class)->create();
$user = $this->createUser();
$sb_ignored = factory(SimBrief::class)->create([
'user_id' => $user->id,
'flight_id' => 'a_flight_id',