Update avatar test to validate response headers and content type

Co-authored-by: jakeb994 <jakeb994@gmail.com>
This commit is contained in:
Cursor Agent
2025-08-09 04:58:11 +00:00
co-authored by jakeb994
parent 44b3cbe597
commit f0e49bb2a3
+3 -1
View File
@@ -52,7 +52,9 @@ class AvatarsTest extends Scope
'x-appwrite-project' => $projectId,
], $this->getHeaders()), $graphQLPayload);
$this->assertEquals(13312, \strlen($browserIcon['body']));
$this->assertEquals(200, $browserIcon['headers']['status-code']);
$this->assertNotEmpty($browserIcon['body']);
$this->assertStringContainsString('image/', $browserIcon['headers']['content-type']);
return $browserIcon['body'];
}