We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca894a7 commit 9ae21f6Copy full SHA for 9ae21f6
1 file changed
tests/RestApiTest.php
@@ -164,12 +164,16 @@ public function testDoNotRetryOnWrongCredentials(): void
164
);
165
166
try {
167
- $api->refreshToken();
+ $api->request('/oauth2/v3/userinfo');
168
} catch (ClientException $e) {
169
$this->assertStringContainsString('401 Unauthorized', $e->getMessage());
170
}
171
172
- $this->assertEmpty($testHandler->getRecords());
+ $this->assertCount(1, $testHandler->getRecords());
173
+ $this->assertStringContainsString(
174
+ 'Retrying request (0x) - reason: Unauthorized',
175
+ $testHandler->getRecords()[0]['message']
176
+ );
177
178
179
protected function getEnv(string $name): string
0 commit comments