mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Add test for boundary
This commit is contained in:
parent
95e6f148da
commit
59aa5fb7ce
1 changed files with 2 additions and 0 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue