Merge branch 'feat-storage-buckets' into feat-large-file
This commit is contained in:
commit
7b3f7b9c78
1 changed files with 8 additions and 6 deletions
|
@ -245,6 +245,8 @@ trait WebhooksBase
|
||||||
'x-appwrite-key' => $this->getProject()['apiKey']
|
'x-appwrite-key' => $this->getProject()['apiKey']
|
||||||
]), [
|
]), [
|
||||||
'name' => 'Test Bucket',
|
'name' => 'Test Bucket',
|
||||||
|
'read' => ['role:all'],
|
||||||
|
'write' => ['role:all']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals($bucket['headers']['status-code'], 201);
|
$this->assertEquals($bucket['headers']['status-code'], 201);
|
||||||
|
@ -311,7 +313,7 @@ trait WebhooksBase
|
||||||
/**
|
/**
|
||||||
* @depends testCreateStorageBucket
|
* @depends testCreateStorageBucket
|
||||||
*/
|
*/
|
||||||
public function testCreateFile(array $data): array
|
public function testCreateBucketFile(array $data): array
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test for SUCCESS
|
* Test for SUCCESS
|
||||||
|
@ -356,9 +358,9 @@ trait WebhooksBase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testCreateFile
|
* @depends testCreateBucketFile
|
||||||
*/
|
*/
|
||||||
public function testUpdateFile(array $data): array
|
public function testUpdateBucketFile(array $data): array
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test for SUCCESS
|
* Test for SUCCESS
|
||||||
|
@ -397,9 +399,9 @@ trait WebhooksBase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testUpdateFile
|
* @depends testUpdateBucketFile
|
||||||
*/
|
*/
|
||||||
public function testDeleteFile(array $data): array
|
public function testDeleteBucketFile(array $data): array
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Test for SUCCESS
|
* Test for SUCCESS
|
||||||
|
@ -435,7 +437,7 @@ trait WebhooksBase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testCreateStorageBucket
|
* @depends testDeleteBucketFile
|
||||||
*/
|
*/
|
||||||
public function testDeleteStorageBucket(array $data)
|
public function testDeleteStorageBucket(array $data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue