diff --git a/tests/Feature/AccessTokenControllerTest.php b/tests/Feature/AccessTokenControllerTest.php index 92218333..3c7d5671 100644 --- a/tests/Feature/AccessTokenControllerTest.php +++ b/tests/Feature/AccessTokenControllerTest.php @@ -49,7 +49,7 @@ public function testGettingAccessTokenWithClientCredentialsGrant() $this->assertArrayHasKey('expires_in', $decodedResponse); $this->assertArrayHasKey('access_token', $decodedResponse); $this->assertSame('Bearer', $decodedResponse['token_type']); - $expiresInSeconds = 31622400; + $expiresInSeconds = 31536000; $this->assertEqualsWithDelta($expiresInSeconds, $decodedResponse['expires_in'], 5); $token = $this->app->make(PersonalAccessTokenFactory::class)->findAccessToken($decodedResponse); @@ -139,7 +139,7 @@ public function testGettingAccessTokenWithPasswordGrant() $this->assertArrayHasKey('access_token', $decodedResponse); $this->assertArrayHasKey('refresh_token', $decodedResponse); $this->assertSame('Bearer', $decodedResponse['token_type']); - $expiresInSeconds = 31622400; + $expiresInSeconds = 31536000; $this->assertEqualsWithDelta($expiresInSeconds, $decodedResponse['expires_in'], 5); $token = $this->app->make(PersonalAccessTokenFactory::class)->findAccessToken($decodedResponse);