From 28cd68f15ad493fb392d8f0e79d53444e471018f Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Wed, 12 Mar 2025 18:54:26 +0530 Subject: [PATCH 1/2] chore: fix test case --- tests/Twilio/ClusterTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Twilio/ClusterTest.php b/tests/Twilio/ClusterTest.php index c355ee2162..fa09ae3f07 100644 --- a/tests/Twilio/ClusterTest.php +++ b/tests/Twilio/ClusterTest.php @@ -70,7 +70,7 @@ public function testSpecialCharacters(): void public function testListParams(): void { $sinkConfiguration = ["destination" => "http://example.org/webhook", "method" => "post", "batch_events" => false]; - $types = [["type" => "com.twilio.messaging.message.delivered"], ["type" => "com.twilio.messaging.message.sent"]]; + $types = ["type"=> "com.twilio.messaging.message.delivered", "type"=> "com.twilio.messaging.message.sent"]; $sink = self::$twilio->events->v1->sinks->create("test sink php", $sinkConfiguration, "webhook"); $this->assertNotNull($sink); @@ -82,4 +82,4 @@ public function testListParams(): void $this->assertTrue(self::$twilio->events->v1->subscriptions($subscription->sid)->delete()); $this->assertTrue(self::$twilio->events->v1->sinks($sink->sid)->delete()); } -} \ No newline at end of file +} From 0b1502c3e436c91dc378e88af41b69a550ea2202 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Wed, 12 Mar 2025 19:29:26 +0530 Subject: [PATCH 2/2] chore: fix test case --- tests/Twilio/ClusterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Twilio/ClusterTest.php b/tests/Twilio/ClusterTest.php index fa09ae3f07..923446011d 100644 --- a/tests/Twilio/ClusterTest.php +++ b/tests/Twilio/ClusterTest.php @@ -70,7 +70,7 @@ public function testSpecialCharacters(): void public function testListParams(): void { $sinkConfiguration = ["destination" => "http://example.org/webhook", "method" => "post", "batch_events" => false]; - $types = ["type"=> "com.twilio.messaging.message.delivered", "type"=> "com.twilio.messaging.message.sent"]; + $types = ["{\"type\": \"com.twilio.messaging.message.delivered\"}", "{\"type\": \"com.twilio.messaging.message.sent\"}"]; $sink = self::$twilio->events->v1->sinks->create("test sink php", $sinkConfiguration, "webhook"); $this->assertNotNull($sink);