Skip to content

Commit fe3bf72

Browse files
updated
1 parent fafacee commit fe3bf72

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

tests/e2e/Adapter/Scopes/AttributeTests.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,26 +2313,15 @@ public function testCreateAttributesBigIntValidationSignedUnsignedAndSizeMetadat
23132313
}
23142314
}
23152315

2316-
// Unsigned > signed-max behavior validated through batch create (string size avoids int overflow).
2316+
// Batch create with unsigned bigint should be accepted with default size semantics.
23172317
$largeUnsignedAttribute = [[
23182318
'$id' => 'unsigned_bigint_large',
23192319
'type' => Database::VAR_BIGINT,
23202320
'size' => 0,
23212321
'required' => false,
23222322
'signed' => false,
23232323
]];
2324-
2325-
if ($database->getAdapter()->getSupportForUnsignedBigInt()) {
2326-
$this->assertTrue($database->createAttributes($collectionName, $largeUnsignedAttribute));
2327-
} else {
2328-
try {
2329-
$database->createAttributes($collectionName, $largeUnsignedAttribute);
2330-
$this->fail('Expected DatabaseException for unsigned bigint overflow on adapter without unsigned bigint support');
2331-
} catch (\Throwable $e) {
2332-
$this->assertInstanceOf(DatabaseException::class, $e);
2333-
$this->assertStringContainsString('Max size allowed for bigint', $e->getMessage());
2334-
}
2335-
}
2324+
$this->assertTrue($database->createAttributes($collectionName, $largeUnsignedAttribute));
23362325
}
23372326

23382327
public function testCreateAttributesSuccessMultiple(): void

0 commit comments

Comments
 (0)