Skip to content

Commit 946b841

Browse files
updated
1 parent 75a7f28 commit 946b841

2 files changed

Lines changed: 1 addition & 24 deletions

File tree

tests/e2e/Adapter/Scopes/AttributeTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ public function testCreateAttributesBigIntValidationSignedUnsignedAndSizeMetadat
23172317
$largeUnsignedAttribute = [[
23182318
'$id' => 'unsigned_bigint_large',
23192319
'type' => Database::VAR_BIGINT,
2320-
'size' => '18446744073709551615',
2320+
'size' => 0,
23212321
'required' => false,
23222322
'signed' => false,
23232323
]];

tests/e2e/Adapter/Scopes/DocumentTests.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7922,27 +7922,4 @@ public function testRegexInjection(): void
79227922
// $database->deleteCollection($collectionName);
79237923
// }
79247924

7925-
public function testCreateDocumentWithBigIntStringValues(): void
7926-
{
7927-
/** @var Database $database */
7928-
$database = $this->getDatabase();
7929-
7930-
$collection = 'test_big_int_string_values';
7931-
$database->createCollection($collection);
7932-
$this->assertEquals(true, $database->createAttribute($collection, 'bigint_unsigned', Database::VAR_BIGINT, 0, false, signed: false));
7933-
7934-
$database->createDocument($collection, new Document([
7935-
'$id' => 'bigint-string-type-doc',
7936-
'$permissions' => [
7937-
Permission::read(Role::any()),
7938-
Permission::create(Role::any()),
7939-
],
7940-
'bigint_unsigned' => (string)9223372036854775807,
7941-
]));
7942-
7943-
$data = $database->getDocument($collection, 'bigint-string-type-doc');
7944-
$this->assertFalse($data->isEmpty());
7945-
$this->assertEquals('bigint-string-type-doc', $data->getId());
7946-
$this->assertEquals('9223372036854775807', (string)$data->getAttribute('bigint_unsigned'));
7947-
}
79487925
}

0 commit comments

Comments
 (0)