Skip to content

Commit 2642f36

Browse files
committed
Revert "Fix tests"
This reverts commit d603001.
1 parent a56f7dd commit 2642f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Feature/AccessTokenControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testGettingAccessTokenWithClientCredentialsGrant()
4949
$this->assertArrayHasKey('expires_in', $decodedResponse);
5050
$this->assertArrayHasKey('access_token', $decodedResponse);
5151
$this->assertSame('Bearer', $decodedResponse['token_type']);
52-
$expiresInSeconds = 31622400;
52+
$expiresInSeconds = 31536000;
5353
$this->assertEqualsWithDelta($expiresInSeconds, $decodedResponse['expires_in'], 5);
5454

5555
$token = $this->app->make(PersonalAccessTokenFactory::class)->findAccessToken($decodedResponse);
@@ -139,7 +139,7 @@ public function testGettingAccessTokenWithPasswordGrant()
139139
$this->assertArrayHasKey('access_token', $decodedResponse);
140140
$this->assertArrayHasKey('refresh_token', $decodedResponse);
141141
$this->assertSame('Bearer', $decodedResponse['token_type']);
142-
$expiresInSeconds = 31622400;
142+
$expiresInSeconds = 31536000;
143143
$this->assertEqualsWithDelta($expiresInSeconds, $decodedResponse['expires_in'], 5);
144144

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

0 commit comments

Comments
 (0)