Skip to content

Commit

Permalink
Use assertEquals for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
lehecht committed Aug 22, 2024
1 parent 4ef3d5b commit 93554c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testStore()

$invitation = $this->project()->invitations()->first();
$this->assertNotNull($invitation);
$this->assertSame($timestamp->toDateTimeString(), $invitation->expires_at->tz($timestamp->timezone)->toDateTimeString());
$this->assertEquals($timestamp, $invitation->expires_at);
$this->assertSame(0, $invitation->current_uses);
$this->assertNotNull($invitation->uuid);
$this->assertNull($invitation->max_uses);
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Services/Auth/ApiGuardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function testTouchToken()
$token->updated_at = Carbon::now(-5);
$token->save();

$this->assertSame($token->updated_at->toDateTimeString(), $token->fresh()->updated_at->toDateTimeString());
$this->assertEquals($token->updated_at, $token->fresh()->updated_at);

$response = $this->call('GET', '/api/v1/users', [], [], [], [
'PHP_AUTH_USER' => $token->owner->email,
Expand Down

0 comments on commit 93554c6

Please sign in to comment.