Code cleanup from inspection results

This commit is contained in:
Nabeel Shahzad
2018-08-26 13:50:08 -05:00
parent 0f3424f41e
commit e95b3eb366
76 changed files with 226 additions and 268 deletions

View File

@@ -49,6 +49,9 @@ class PIREPTest extends TestCase
return $saved_route;
}
/**
* @throws Exception
*/
public function testAddPirep()
{
$user = factory(App\Models\User::class)->create();
@@ -59,7 +62,11 @@ class PIREPTest extends TestCase
]);
$pirep = $this->pirepSvc->create($pirep, []);
$this->pirepSvc->saveRoute($pirep);
try {
$this->pirepSvc->saveRoute($pirep);
} catch (Exception $e) {
throw $e;
}
/*
* Check the initial state info