Skip to content

Commit ef5c779

Browse files
updated tests
1 parent 73e917e commit ef5c779

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Database/Database.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8941,6 +8941,9 @@ public function casting(Document $collection, Document $document): Document
89418941
case self::VAR_INTEGER:
89428942
$node = (int)$node;
89438943
break;
8944+
case self::VAR_BIGINT:
8945+
$node = (int)$node;
8946+
break;
89448947
case self::VAR_FLOAT:
89458948
$node = (float)$node;
89468949
break;

tests/e2e/Adapter/Scopes/AttributeTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,7 @@ public function testCreateAttributesIntegerSizeLimit(): void
22222222
}
22232223

22242224

2225-
public function testCreateAttributesBigIntIgnoresSizeLimit(): void
2225+
public function testCreateAttributesBigInt(): void
22262226
{
22272227
/** @var Database $database */
22282228
$database = $this->getDatabase();

tests/e2e/Adapter/Scopes/DocumentTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ public function testCreateUpdateBigIntAndIncrementDecrement(): void
15221522

15231523
// Verify regular update works for bigint attributes
15241524
$updated = $database->updateDocument($collection, $document->getId(), new Document([
1525-
'inc' => 20,
1525+
'inc' => 20
15261526
]));
15271527
$this->assertEquals(20, $updated->getAttribute('inc'));
15281528

0 commit comments

Comments
 (0)