1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

fix storage tests

This commit is contained in:
Damodar Lohani 2022-02-16 08:30:09 +00:00
parent cecc99b04e
commit f37a26b437
2 changed files with 6 additions and 6 deletions

View file

@ -12,11 +12,11 @@ trait StorageBase
/**
* Test for SUCCESS
*/
$bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([
$bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey'],
], $this->getHeaders()), [
], [
'bucketId' => 'unique()',
'name' => 'Test Bucket',
'permission' => 'file',
@ -52,11 +52,11 @@ trait StorageBase
* This should also validate the test for when Bucket encryption
* is disabled as we are using same test
*/
$bucket2 = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([
$bucket2 = $this->client->call(Client::METHOD_POST, '/storage/buckets', [
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey'],
], $this->getHeaders()), [
], [
'bucketId' => 'unique()',
'name' => 'Test Bucket 2',
'permission' => 'file',

View file

@ -22,11 +22,11 @@ class StorageCustomClientTest extends Scope
/**
* Test for SUCCESS
*/
$bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', array_merge([
$bucket = $this->client->call(Client::METHOD_POST, '/storage/buckets', [
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey'],
], $this->getHeaders()), [
], [
'bucketId' => 'unique()',
'name' => 'Test Bucket',
'permission' => 'file',