@@ -93,7 +93,7 @@ public function testCreateDocument(): Document
9393 // Test create document with manual internal id
9494 $ manualIdDocument = $ database ->createDocument ('documents ' , new Document ([
9595 '$id ' => '56000 ' ,
96- '$sequence ' => ' 56000 ' ,
96+ '$sequence ' => 56000 ,
9797 '$permissions ' => [
9898 Permission::read (Role::any ()),
9999 Permission::read (Role::user (ID ::custom ('1 ' ))),
@@ -292,7 +292,7 @@ public function testCreateDocumentsWithAutoIncrement(): void
292292
293293 for ($ i = $ sequence ; $ i <= ($ sequence + $ count ); $ i ++) {
294294 $ documents [] = new Document ([
295- '$sequence ' => ( string ) $ i ,
295+ '$sequence ' => $ i ,
296296 '$permissions ' => [
297297 Permission::read (Role::any ()),
298298 Permission::create (Role::any ()),
@@ -363,7 +363,7 @@ public function testCreateDocumentsWithDifferentAttributes(): void
363363 $ documents = [
364364 new Document ([
365365 '$id ' => 'third ' ,
366- '$sequence ' => ' third ' ,
366+ '$sequence ' => 3 ,
367367 'string ' => 'text📝 ' ,
368368 ]),
369369 new Document ([
@@ -1765,9 +1765,9 @@ public function testFindByID(): void
17651765 * @depends testFind
17661766 * @param array<string, mixed> $data
17671767 * @return void
1768- * @throws \Utopia\Database\Exception
1768+ * @throws DatabaseException
17691769 */
1770- public function testFindByInternalID (array $ data ): void
1770+ public function testFindBySequence (array $ data ): void
17711771 {
17721772 /** @var Database $database */
17731773 $ database = static ::getDatabase ();
@@ -4228,7 +4228,7 @@ public function testExceptionCaseInsensitiveDuplicate(Document $document): Docum
42284228 $ database = static ::getDatabase ();
42294229
42304230 $ document ->setAttribute ('$id ' , 'caseSensitive ' );
4231- $ document ->setAttribute ('$sequence ' , ' 200 ' );
4231+ $ document ->setAttribute ('$sequence ' , 200 );
42324232 $ database ->createDocument ($ document ->getCollection (), $ document );
42334233
42344234 $ document ->setAttribute ('$id ' , 'CaseSensitive ' );
0 commit comments