Skip to content

Commit eb2b8b4

Browse files
committed
Test encoding
1 parent 861032b commit eb2b8b4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/e2e/Adapter/Base.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,13 +2289,15 @@ public function testCreateDocuments(): array
22892289
$this->assertEquals($count, \count($documents));
22902290

22912291
foreach ($documents as $document) {
2292+
$fresh = static::getDatabase()->getDocument($collection, $document->getId());
2293+
$this->assertEquals($document, $fresh);
22922294
$this->assertNotEmpty(true, $document->getId());
22932295
$this->assertIsString($document->getAttribute('string'));
22942296
$this->assertEquals('text📝', $document->getAttribute('string')); // Also makes sure an emoji is working
22952297
$this->assertIsInt($document->getAttribute('integer'));
22962298
$this->assertEquals(5, $document->getAttribute('integer'));
22972299
$this->assertIsInt($document->getAttribute('bigint'));
2298-
$this->assertEquals(9223372036854775807, $document->getAttribute('bigint'));
2300+
$this->assertEquals(Database::BIG_INT_MAX, $document->getAttribute('bigint'));
22992301
}
23002302

23012303
return $documents;
@@ -17600,6 +17602,8 @@ public function testUpdateDocuments(): void
1760017602
$this->assertEquals(5, $count);
1760117603

1760217604
foreach ($results as $document) {
17605+
$fresh = static::getDatabase()->getDocument($collection, $document->getId());
17606+
$this->assertEquals($fresh, $document);
1760317607
$this->assertEquals('text📝 updated', $document->getAttribute('string'));
1760417608
}
1760517609

0 commit comments

Comments
 (0)