Skip to content

Commit

Permalink
revert changes on interval
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Nov 19, 2024
1 parent 7feb08f commit c0d67fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Bridge/DeviceCodeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function persistDeviceCode(DeviceCodeEntityInterface $deviceCodeEntity):
'client_id' => $deviceCodeEntity->getClient()->getIdentifier(),
'user_code' => $deviceCodeEntity->getUserCode(),
'scopes' => $deviceCodeEntity->getScopes(),
'interval' => $deviceCodeEntity->getInterval(),
'revoked' => false,
'user_approved_at' => null,
'last_polled_at' => null,
Expand Down
1 change: 0 additions & 1 deletion tests/Feature/RevokedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ private function persistNewDeviceCode(BridgeDeviceCodeRepository $repository, st
$deviceCode->shouldReceive('getClient->getIdentifier')->andReturn('clientId');
$deviceCode->shouldReceive('getUserCode')->andReturn('userCode');
$deviceCode->shouldReceive('getScopes')->andReturn([]);
$deviceCode->shouldReceive('getInterval')->andReturn(5);
$deviceCode->shouldReceive('getExpiryDateTime')->andReturn(CarbonImmutable::now());
$deviceCode->shouldReceive('getLastPolledAt')->andReturn(null);
$deviceCode->shouldReceive('getUserApproved')->andReturn(false);
Expand Down

0 comments on commit c0d67fa

Please sign in to comment.