Skip to content

Commit e001abd

Browse files
committed
Fix unit tests
1 parent 4d5a1ee commit e001abd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Database/Adapter/SQLite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ public function createDocument(string $collection, Document $document): Document
609609
$statment->execute();
610610
$last = $statment->fetch();
611611

612-
$document['$sequence'] = $last['id'];
612+
$document['$sequence'] = (int)$last['id'];
613613

614614
if (isset($stmtPermissions)) {
615615
$stmtPermissions->execute();

tests/unit/Validator/StructureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function testNullValues(): void
213213
'published' => true,
214214
'tags' => ['dog', 'cat', 'mouse'],
215215
'feedback' => 'team@appwrite.io',
216-
'id' => '1000',
216+
'id' => 1000,
217217
])));
218218

219219
$this->assertEquals(true, $validator->isValid(new Document([
@@ -659,7 +659,7 @@ public function testId(): void
659659
Database::VAR_ID_INT
660660
);
661661

662-
$id = '1000';
662+
$id = 1000;
663663
$mongoid = '507f1f77bcf86cd799439011';
664664

665665
/**

0 commit comments

Comments
 (0)