1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

fix database test

This commit is contained in:
Damodar Lohani 2021-08-05 15:09:42 +05:45
parent 925dc4a169
commit 8d39ab8bcc

View file

@ -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']);