File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments