fix: test

This commit is contained in:
Chirag Aggarwal
2025-10-28 15:06:43 +05:30
parent 1546add5d5
commit 3f710ddc70
2 changed files with 4 additions and 4 deletions
@@ -154,10 +154,10 @@ class StorageConsoleClientTest extends Scope
$this->assertEquals(200, $preview['headers']['status-code']); // Returns 200 since image transformations are not counted for console requests
// Delete the bucket
$this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], array_merge([
$response = $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()));
$this->assertEquals(200, $bucket['headers']['status-code']);
$this->assertEquals(204, $response['headers']['status-code']);
}
}
@@ -1440,11 +1440,11 @@ class StorageCustomClientTest extends Scope
$this->assertStringContainsString('Image transformations are disabled for the requested bucket.', $preview['body']['message']);
// Delete the bucket
$this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], [
$response = $this->client->call(Client::METHOD_DELETE, '/storage/buckets/' . $bucket['body']['$id'], [
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey'],
]);
$this->assertEquals(200, $bucket['headers']['status-code']);
$this->assertEquals(204, $response['headers']['status-code']);
}
}