From e1fffa775e4a4169a204de4e0dc66bc164cafb9f Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 25 Nov 2024 15:23:22 +0900 Subject: [PATCH] Fix Tests --- tests/e2e/Services/Databases/DatabasesBase.php | 4 ++-- tests/e2e/Services/Databases/DatabasesCustomClientTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 62b5118283..5379fe11b7 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -4875,7 +4875,7 @@ trait DatabasesBase ]); $this->assertEquals(201, $response['headers']['status-code']); - $this->assertEquals(3, $response['body']['modified']); + $this->assertCount(3, $response['body']['documents']); $response = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$data['$id']}/documents", array_merge([ 'content-type' => 'application/json', @@ -5054,7 +5054,7 @@ trait DatabasesBase ]); $this->assertEquals(201, $response['headers']['status-code']); - $this->assertEquals(2, $response['body']['modified']); + $this->assertCount(2, $response['body']['documents']); $response = $this->client->call(Client::METHOD_GET, "/databases/{$databaseId}/collections/{$collection1}/documents", array_merge([ 'content-type' => 'application/json', diff --git a/tests/e2e/Services/Databases/DatabasesCustomClientTest.php b/tests/e2e/Services/Databases/DatabasesCustomClientTest.php index 51e679c86e..56922b602b 100644 --- a/tests/e2e/Services/Databases/DatabasesCustomClientTest.php +++ b/tests/e2e/Services/Databases/DatabasesCustomClientTest.php @@ -1077,6 +1077,6 @@ class DatabasesCustomClientTest extends Scope ]); $this->assertEquals(201, $response['headers']['status-code']); - $this->assertEquals(3, $response['body']['modified']); + $this->assertCount(3, $response['body']['documents']); } }