diff --git a/tests/Feature/GenerateInvitesTest.php b/tests/Feature/GenerateInvitesTest.php index d39d88d..1c41afe 100644 --- a/tests/Feature/GenerateInvitesTest.php +++ b/tests/Feature/GenerateInvitesTest.php @@ -62,7 +62,7 @@ public function it_can_have_multiple_uses() */ public function it_can_have_an_expiry_date() { - $date = Carbon::now( 'UTC')->endOfDay()->startOfSecond(); + $date = Carbon::now( 'UTC')->endOfDay()->second(59); Doorman::generate()->expiresOn($date)->make(); @@ -80,7 +80,7 @@ public function it_has_helper_to_set_number_of_days_in_future_to_expire() $invite = Invite::first(); - $date = Carbon::now('UTC')->addDays(7)->endOfDay()->startOfSecond(); + $date = Carbon::now('UTC')->addDays(7)->endOfDay()->second(59); Assert::assertEquals($date, $invite->valid_until); }