Skip to content

Commit d603001

Browse files
committed
Fix tests
1 parent fcfac3f commit d603001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Feature/AccessTokenControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testGettingAccessTokenWithClientCredentialsGrant()
7373
$this->assertArrayHasKey('expires_in', $decodedResponse);
7474
$this->assertArrayHasKey('access_token', $decodedResponse);
7575
$this->assertSame('Bearer', $decodedResponse['token_type']);
76-
$expiresInSeconds = 31536000;
76+
$expiresInSeconds = 31622400;
7777
$this->assertEqualsWithDelta($expiresInSeconds, $decodedResponse['expires_in'], 5);
7878

7979
$token = $this->app->make(PersonalAccessTokenFactory::class)->findAccessToken($decodedResponse);
@@ -163,7 +163,7 @@ public function testGettingAccessTokenWithPasswordGrant()
163163
$this->assertArrayHasKey('access_token', $decodedResponse);
164164
$this->assertArrayHasKey('refresh_token', $decodedResponse);
165165
$this->assertSame('Bearer', $decodedResponse['token_type']);
166-
$expiresInSeconds = 31536000;
166+
$expiresInSeconds = 31622400;
167167
$this->assertEqualsWithDelta($expiresInSeconds, $decodedResponse['expires_in'], 5);
168168

169169
$token = $this->app->make(PersonalAccessTokenFactory::class)->findAccessToken($decodedResponse);

0 commit comments

Comments
 (0)