From 8d39ab8bcc8d225ba6b247d7bb02dcf3d04ff4d8 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 5 Aug 2021 15:09:42 +0545 Subject: [PATCH] fix database test --- tests/e2e/Services/Database/DatabaseBase.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/e2e/Services/Database/DatabaseBase.php b/tests/e2e/Services/Database/DatabaseBase.php index f9e796eb97..ab6b081203 100644 --- a/tests/e2e/Services/Database/DatabaseBase.php +++ b/tests/e2e/Services/Database/DatabaseBase.php @@ -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']);