Skip to content

Commit 115257a

Browse files
committed
Fix transient test
1 parent 31f45a0 commit 115257a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/Acceptance/TokenEndpointTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testSuccessfulClientCredentialsRequest(): void
4444
$jsonResponse = json_decode($response->getContent(), true);
4545

4646
$this->assertSame('Bearer', $jsonResponse['token_type']);
47-
$this->assertSame(3600, $jsonResponse['expires_in']);
47+
$this->assertLessThanOrEqual(3600, $jsonResponse['expires_in']);
4848
$this->assertNotEmpty($jsonResponse['access_token']);
4949
}
5050

@@ -73,7 +73,7 @@ public function testSuccessfulPasswordRequest(): void
7373
$jsonResponse = json_decode($response->getContent(), true);
7474

7575
$this->assertSame('Bearer', $jsonResponse['token_type']);
76-
$this->assertSame(3600, $jsonResponse['expires_in']);
76+
$this->assertLessThanOrEqual(3600, $jsonResponse['expires_in']);
7777
$this->assertNotEmpty($jsonResponse['access_token']);
7878
$this->assertNotEmpty($jsonResponse['refresh_token']);
7979
}
@@ -100,7 +100,7 @@ public function testSuccessfulRefreshTokenRequest(): void
100100
$jsonResponse = json_decode($response->getContent(), true);
101101

102102
$this->assertSame('Bearer', $jsonResponse['token_type']);
103-
$this->assertSame(3600, $jsonResponse['expires_in']);
103+
$this->assertLessThanOrEqual(3600, $jsonResponse['expires_in']);
104104
$this->assertNotEmpty($jsonResponse['access_token']);
105105
$this->assertNotEmpty($jsonResponse['refresh_token']);
106106
}
@@ -128,7 +128,7 @@ public function testSuccessfulAuthorizationCodeRequest(): void
128128
$jsonResponse = json_decode($response->getContent(), true);
129129

130130
$this->assertSame('Bearer', $jsonResponse['token_type']);
131-
$this->assertSame(3600, $jsonResponse['expires_in']);
131+
$this->assertLessThanOrEqual(3600, $jsonResponse['expires_in']);
132132
$this->assertNotEmpty($jsonResponse['access_token']);
133133
}
134134

@@ -154,7 +154,7 @@ public function testSuccessfulAuthorizationCodeRequestWithPublicClient(): void
154154
$jsonResponse = json_decode($response->getContent(), true);
155155

156156
$this->assertSame('Bearer', $jsonResponse['token_type']);
157-
$this->assertSame(3600, $jsonResponse['expires_in']);
157+
$this->assertLessThanOrEqual(3600, $jsonResponse['expires_in']);
158158
$this->assertNotEmpty($jsonResponse['access_token']);
159159
}
160160

0 commit comments

Comments
 (0)