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