mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
ID updates
This commit is contained in:
@@ -6,6 +6,7 @@ use Tests\E2E\Client;
|
||||
use Tests\E2E\Scopes\ProjectCustom;
|
||||
use Tests\E2E\Scopes\Scope;
|
||||
use Tests\E2E\Scopes\SideServer;
|
||||
use Utopia\Database\ID;
|
||||
|
||||
class StorageCustomServerTest extends Scope
|
||||
{
|
||||
@@ -22,7 +23,7 @@ class StorageCustomServerTest extends Scope
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'bucketId' => 'unique()',
|
||||
'bucketId' => ID::unique(),
|
||||
'name' => 'Test Bucket',
|
||||
'fileSecurity' => true,
|
||||
]);
|
||||
@@ -44,7 +45,7 @@ class StorageCustomServerTest extends Scope
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'bucketId' => 'bucket1',
|
||||
'bucketId' => ID::custom('bucket1'),
|
||||
'name' => 'Test Bucket',
|
||||
'fileSecurity' => true,
|
||||
]);
|
||||
@@ -58,7 +59,7 @@ class StorageCustomServerTest extends Scope
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'bucketId' => 'unique()',
|
||||
'bucketId' => ID::unique(),
|
||||
'name' => '',
|
||||
'fileSecurity' => true,
|
||||
]);
|
||||
@@ -179,7 +180,7 @@ class StorageCustomServerTest extends Scope
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'bucketId' => 'unique()',
|
||||
'bucketId' => ID::unique(),
|
||||
'name' => 'Test Bucket Updated',
|
||||
'enabled' => false,
|
||||
'fileSecurity' => true,
|
||||
|
||||
Reference in New Issue
Block a user