From 83a9d3015cb199da66270322ed9d0c6eb0a519f2 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sat, 27 Sep 2025 11:07:57 +0200 Subject: [PATCH] bug [Platform][ElevenLabs] Fix constructor parameter order in tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../tests/Bridge/ElevenLabs/ElevenLabsClientTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/platform/tests/Bridge/ElevenLabs/ElevenLabsClientTest.php b/src/platform/tests/Bridge/ElevenLabs/ElevenLabsClientTest.php index 9fccce4d8..c0639367a 100644 --- a/src/platform/tests/Bridge/ElevenLabs/ElevenLabsClientTest.php +++ b/src/platform/tests/Bridge/ElevenLabs/ElevenLabsClientTest.php @@ -89,8 +89,8 @@ public function testClientCanPerformSpeechToTextRequest() $client = new ElevenLabsClient( $httpClient, - 'https://api.elevenlabs.io/v1', 'my-api-key', + 'https://api.elevenlabs.io/v1', ); $payload = $normalizer->normalize(Audio::fromFile(\dirname(__DIR__, 5).'/fixtures/audio.mp3')); @@ -114,8 +114,8 @@ public function testClientCannotPerformTextToSpeechRequestWithoutValidPayload() $client = new ElevenLabsClient( $mockHttpClient, - 'https://api.elevenlabs.io/v1', 'my-api-key', + 'https://api.elevenlabs.io/v1', ); $this->expectException(InvalidArgumentException::class); @@ -142,8 +142,8 @@ public function testClientCanPerformTextToSpeechRequest() $client = new ElevenLabsClient( $httpClient, - 'https://api.elevenlabs.io/v1', 'my-api-key', + 'https://api.elevenlabs.io/v1', ); $client->request(new ElevenLabs(ElevenLabs::ELEVEN_MULTILINGUAL_V2, [ @@ -171,8 +171,8 @@ public function testClientCanPerformTextToSpeechRequestWhenVoiceKeyIsProvidedAsR $client = new ElevenLabsClient( $httpClient, - 'https://api.elevenlabs.io/v1', 'my-api-key', + 'https://api.elevenlabs.io/v1', ); $client->request(new ElevenLabs(ElevenLabs::ELEVEN_MULTILINGUAL_V2), [ @@ -200,8 +200,8 @@ public function testClientCanPerformTextToSpeechRequestAsStream() $client = new ElevenLabsClient( $httpClient, - 'https://api.elevenlabs.io/v1', 'my-api-key', + 'https://api.elevenlabs.io/v1', ); $result = $client->request(new ElevenLabs(ElevenLabs::ELEVEN_MULTILINGUAL_V2, [ @@ -231,8 +231,8 @@ public function testClientCanPerformTextToSpeechRequestAsStreamVoiceKeyIsProvide $client = new ElevenLabsClient( $httpClient, - 'https://api.elevenlabs.io/v1', 'my-api-key', + 'https://api.elevenlabs.io/v1', ); $result = $client->request(new ElevenLabs(ElevenLabs::ELEVEN_MULTILINGUAL_V2), [