Skip to content

Commit

Permalink
change handling of microseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkeash committed Oct 6, 2018
1 parent 6a180ae commit e7228e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/GenerateInvitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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);
}
Expand Down

0 comments on commit e7228e8

Please sign in to comment.