1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Test Index Limit Comment

This commit is contained in:
fogelito 2022-06-15 10:47:46 +03:00
parent 536363e41e
commit fce6f152e8

View file

@ -789,8 +789,8 @@ class DatabaseCustomServerTest extends Scope
$this->assertEquals('available', $attribute['status'], 'attribute: ' . $attribute['key']);
}
// testing for indexLimit = 64
// MariaDB, MySQL, and MongoDB create 3 indexes per new collection
// Test indexLimit = 64
// MariaDB, MySQL, and MongoDB create 5 indexes per new collection
// Add up to the limit, then check if the next index throws IndexLimitException
for ($i = 0; $i < 59; $i++) {
// $this->assertEquals(true, static::getDatabase()->createIndex('indexLimit', "index{$i}", Database::INDEX_KEY, ["test{$i}"], [16]));