@@ -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 ' => $ i ,
295+ '$sequence ' => ( string ) $ 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 ' => 3 ,
366+ '$sequence ' => ' third ' ,
367367 'string ' => 'text📝 ' ,
368368 ]),
369369 new Document ([
@@ -1778,9 +1778,9 @@ public function testFindByID(): void
17781778 * @depends testFind
17791779 * @param array<string, mixed> $data
17801780 * @return void
1781- * @throws DatabaseException
1781+ * @throws \Utopia\Database\Exception
17821782 */
1783- public function testFindBySequence (array $ data ): void
1783+ public function testFindByInternalID (array $ data ): void
17841784 {
17851785 /** @var Database $database */
17861786 $ database = static ::getDatabase ();
@@ -4279,7 +4279,7 @@ public function testExceptionCaseInsensitiveDuplicate(Document $document): Docum
42794279 $ database = static ::getDatabase ();
42804280
42814281 $ document ->setAttribute ('$id ' , 'caseSensitive ' );
4282- $ document ->setAttribute ('$sequence ' , 200 );
4282+ $ document ->setAttribute ('$sequence ' , ' 200 ' );
42834283 $ database ->createDocument ($ document ->getCollection (), $ document );
42844284
42854285 $ document ->setAttribute ('$id ' , 'CaseSensitive ' );
0 commit comments