Skip to content

Commit 26a4dd7

Browse files
committed
Fix tests
1 parent 53f4ffd commit 26a4dd7

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/Database/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getId(): string
7070
*/
7171
public function getSequence(): string
7272
{
73-
return $this->getAttribute('$sequence', '0');
73+
return $this->getAttribute('$sequence', '');
7474
}
7575

7676
/**

tests/e2e/Adapter/Scopes/DocumentTests.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,14 +1846,7 @@ public function testFindByInternalID(array $data): void
18461846
$this->assertEquals(1, count($documents));
18471847

18481848
$empty = new Document();
1849-
$this->assertEquals('0', $empty->getSequence());
1850-
1851-
/**
1852-
* Check no exceptions is thrown
1853-
*/
1854-
$database->find('movies', [
1855-
Query::equal('$sequence', [$empty->getSequence()]),
1856-
]);
1849+
$this->assertEquals('', $empty->getSequence());
18571850
}
18581851

18591852
public function testFindOrderBy(): void

0 commit comments

Comments
 (0)