diff --git a/tests/php/Http/Controllers/Api/ProjectInvitationControllerTest.php b/tests/php/Http/Controllers/Api/ProjectInvitationControllerTest.php index 26cb79838..4b347ee59 100644 --- a/tests/php/Http/Controllers/Api/ProjectInvitationControllerTest.php +++ b/tests/php/Http/Controllers/Api/ProjectInvitationControllerTest.php @@ -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); diff --git a/tests/php/Services/Auth/ApiGuardTest.php b/tests/php/Services/Auth/ApiGuardTest.php index 65465b284..17e2b316b 100644 --- a/tests/php/Services/Auth/ApiGuardTest.php +++ b/tests/php/Services/Auth/ApiGuardTest.php @@ -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,