1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

uncomment missing ubucket id test

This commit is contained in:
Damodar Lohani 2021-09-10 14:35:15 +05:45
parent 2f9849f957
commit c31bca52c1

View file

@ -61,14 +61,14 @@ class StorageConsoleClientTest extends Scope
// TODO: Uncomment once we implement check for missing bucketId in the usage endpoint.
// $response = $this->client->call(Client::METHOD_GET, '/storage/randomBucketId/usage', array_merge([
// 'content-type' => 'application/json',
// 'x-appwrite-project' => $this->getProject()['$id']
// ], $this->getHeaders()), [
// 'range' => '24h'
// ]);
$response = $this->client->call(Client::METHOD_GET, '/storage/randomBucketId/usage', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id']
], $this->getHeaders()), [
'range' => '24h'
]);
// $this->assertEquals($response['headers']['status-code'], 404);
$this->assertEquals($response['headers']['status-code'], 404);
/**
* Test for SUCCESS