Apply fixes from StyleCI

This commit is contained in:
Nabeel Shahzad
2018-08-26 16:40:04 +00:00
committed by StyleCI Bot
parent 20f46adbc4
commit 9596d88b48
407 changed files with 4032 additions and 3286 deletions

View File

@@ -4,8 +4,8 @@ use App\Models\UserAward;
class AwardsTest extends TestCase
{
private $awardSvc,
$pirepSvc;
private $awardSvc;
private $pirepSvc;
public function setUp()
{
@@ -30,7 +30,7 @@ class AwardsTest extends TestCase
{
// Create one award that's given out with one flight
$award = factory(App\Models\Award::class)->create([
'ref_model' => App\Awards\PilotFlightAwards::class,
'ref_model' => App\Awards\PilotFlightAwards::class,
'ref_model_params' => 1,
]);
@@ -40,18 +40,18 @@ class AwardsTest extends TestCase
$pirep = factory(App\Models\Pirep::class)->create([
'airline_id' => $user->airline->id,
'user_id' => $user->id,
'user_id' => $user->id,
]);
$this->pirepSvc->create($pirep);
$this->pirepSvc->accept($pirep);
$w = [
'user_id' => $user->id,
'user_id' => $user->id,
'award_id' => $award->id,
];
# Make sure only one is awarded
// Make sure only one is awarded
$this->assertEquals(1, UserAward::where($w)->count(['id']));
$found_award = UserAward::where($w)->first();