Skip to content

Commit

Permalink
Carbon v3 test compatibility fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Mar 12, 2024
1 parent 6ce05d9 commit 0c18c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/InvitationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function expiration_days_can_be_passed_to_the_factory_method()
$invitation = Invitation::createInvitation('clima@cloud.it', null, null, [], 18);

$this->assertInstanceOf(Invitation::class, $invitation);
$this->assertEquals(18, round($invitation->expires_at->floatDiffInDays()));
$this->assertEquals(18, round($invitation->expires_at->floatDiffInDays(null, true)));
}

/** @test */
Expand All @@ -393,7 +393,7 @@ public function all_fields_can_be_passed_to_the_factory_method()
$this->assertEquals('Lego Floor', $invitation->name);
$this->assertTrue(UserType::API()->equals($invitation->type));
$this->assertEquals(['role' => 'shop admin'], $invitation->options);
$this->assertEquals(23, round($invitation->expires_at->floatDiffInDays()));
$this->assertEquals(23, round($invitation->expires_at->floatDiffInDays(null, true)));
}

/** @test */
Expand Down

0 comments on commit 0c18c04

Please sign in to comment.