mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix database test
This commit is contained in:
@@ -676,7 +676,7 @@ trait DatabaseBase
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'customId' => 'unique()',
|
||||
'documentId' => 'unique()',
|
||||
'data' => [
|
||||
'ip' => '1.1.1.1',
|
||||
],
|
||||
@@ -712,6 +712,7 @@ trait DatabaseBase
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
'documentId' => 'unique()',
|
||||
'data' => [
|
||||
'floatRange' => 1.4,
|
||||
],
|
||||
@@ -743,8 +744,6 @@ trait DatabaseBase
|
||||
'write' => ['user:'.$this->getUser()['$id']],
|
||||
]);
|
||||
|
||||
// var_dump($notTooLow);
|
||||
|
||||
$this->assertEquals(201, $goodEmail['headers']['status-code']);
|
||||
$this->assertEquals(201, $goodIp['headers']['status-code']);
|
||||
$this->assertEquals(201, $goodUrl['headers']['status-code']);
|
||||
|
||||
Reference in New Issue
Block a user