Skip to content

Commit 7da46cb

Browse files
author
vitality
committed
[Platform][OpenAI] simplify authentication error test structure
Remove unnecessary JSON fields from mock response to focus on the essential error message extraction logic.
1 parent 56881ba commit 7da46cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/tests/Bridge/OpenAi/Gpt/ResultConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function testThrowsAuthenticationExceptionOnInvalidApiKey()
163163
$httpResponse->method('getStatusCode')->willReturn(401);
164164
$httpResponse->method('getContent')->willReturn(json_encode([
165165
'error' => [
166-
'message' => 'Invalid API key provided: sk-invalid'
166+
'message' => 'Invalid API key provided: sk-invalid',
167167
],
168168
]));
169169

0 commit comments

Comments
 (0)