create bucket validating all fields
This commit is contained in:
parent
7d5e073812
commit
30ec6fcaae
1 changed files with 6 additions and 0 deletions
|
@ -27,8 +27,14 @@ class StorageCustomServerTest extends Scope
|
|||
$this->assertEquals(201, $bucket['headers']['status-code']);
|
||||
$this->assertNotEmpty($bucket['body']['$id']);
|
||||
$this->assertIsInt($bucket['body']['dateCreated']);
|
||||
$this->assertIsArray($bucket['body']['$read']);
|
||||
$this->assertIsArray($bucket['body']['$write']);
|
||||
$this->assertIsArray($bucket['body']['allowedFileExtensions']);
|
||||
$this->assertEquals('Test Bucket', $bucket['body']['name']);
|
||||
$this->assertEquals(true, $bucket['body']['enabled']);
|
||||
$this->assertEquals(true, $bucket['body']['encryption']);
|
||||
$this->assertEquals(true, $bucket['body']['antiVirus']);
|
||||
$this->assertEquals('local', $bucket['body']['adapter']);
|
||||
$bucketId = $bucket['body']['$id'];
|
||||
/**
|
||||
* Test for FAILURE
|
||||
|
|
Loading…
Reference in a new issue