diff --git a/tests/e2e/Adapter/Scopes/DocumentTests.php b/tests/e2e/Adapter/Scopes/DocumentTests.php index 50bbcba57..e5c268f60 100644 --- a/tests/e2e/Adapter/Scopes/DocumentTests.php +++ b/tests/e2e/Adapter/Scopes/DocumentTests.php @@ -3533,6 +3533,17 @@ public function testUpdateDocuments(): void 'array' => false, 'filters' => [], ]), + new Document([ + '$id' => ID::custom('boolean'), + 'type' => Database::VAR_BOOLEAN, + 'format' => '', + 'size' => 0, + 'signed' => true, + 'required' => false, + 'default' => false, // not null + 'array' => false, + 'filters' => [], + ]), ], permissions: [ Permission::read(Role::any()), Permission::create(Role::any()), @@ -3544,7 +3555,8 @@ public function testUpdateDocuments(): void $database->createDocument($collection, new Document([ '$id' => 'doc' . $i, 'string' => 'text📝 ' . $i, - 'integer' => $i + 'integer' => $i, + 'boolean' => true ])); } @@ -3562,6 +3574,7 @@ public function testUpdateDocuments(): void foreach ($results as $document) { $this->assertEquals('text📝 updated', $document->getAttribute('string')); + $this->assertEquals(true, $document->getAttribute('boolean')); } $updatedDocuments = $database->find($collection, [ @@ -3573,6 +3586,7 @@ public function testUpdateDocuments(): void foreach ($updatedDocuments as $document) { $this->assertEquals('text📝 updated', $document->getAttribute('string')); $this->assertGreaterThanOrEqual(5, $document->getAttribute('integer')); + $this->assertEquals(true, $document->getAttribute('boolean')); } $controlDocuments = $database->find($collection, [