diff --git a/modules/Awards/Awards/FlightRouteAwards.php b/modules/Awards/Awards/FlightRouteAwards.php new file mode 100644 index 00000000..37d41f32 --- /dev/null +++ b/modules/Awards/Awards/FlightRouteAwards.php @@ -0,0 +1,60 @@ +user->last_pirep->dpt_airport_id; + $arr = $this->user->last_pirep->arr_airport_id; + + if (strcasecmp($dpt, $pieces[0]) == 0 && strcasecmp($arr, $pieces[1]) == 0) { + return true; + } + return false; + } +} diff --git a/tests/AwardsTest.php b/tests/AwardsTest.php index f6356dd1..fabf200f 100644 --- a/tests/AwardsTest.php +++ b/tests/AwardsTest.php @@ -32,7 +32,7 @@ class AwardsTest extends TestCase public function testGetAwardsClasses() { $classes = $this->awardSvc->findAllAwardClasses(); - $this->assertCount(2, $classes); + $this->assertGreaterThanOrEqual(2, $classes); } /**