From 59aa5fb7ce07d20eccb71b9f8fed8d086bbefba7 Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:23:07 +0530 Subject: [PATCH] Add test for boundary --- tests/e2e/Services/Functions/FunctionsCustomServerTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index aedcdada21..aface6e822 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -1491,6 +1491,8 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(201, $execution['headers']['status-code']); $this->assertStringContainsString('multipart/form-data', $execution['headers']['content-type']); + $contentType = explode(';', $execution['headers']['content-type']); + $this->assertStringContainsString('boundary=----', $contentType[1]); $bytes = unpack('C*byte', $execution['body']['responseBody']); $this->assertCount(3, $bytes); $this->assertEquals(0, $bytes['byte1']);