Skip to content

Commit 7f6486d

Browse files
committed
short select
1 parent 20af618 commit 7f6486d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/e2e/Adapter/Base.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16517,14 +16517,20 @@ public function testDeleteBulkDocuments(): void
1651716517
$docs = static::getDatabase()->find('bulk_delete');
1651816518
$this->assertCount(10, $docs);
1651916519

16520-
// TEST: Bulk Delete All Documents
16521-
$this->assertCount(10, static::getDatabase()->deleteDocuments(
16520+
/**
16521+
* Test Short select query
16522+
*/
16523+
$this->assertCount(2, static::getDatabase()->deleteDocuments(
1652216524
'bulk_delete',
1652316525
[
16524-
Query::select(['$internalId', '$id', '$permissions', '$updatedAt'])
16526+
Query::select(['$internalId', '$id', '$permissions', '$updatedAt']),
16527+
Query::limit(2)
1652516528
]
1652616529
));
1652716530

16531+
// TEST: Bulk Delete All Documents
16532+
$this->assertCount(8, static::getDatabase()->deleteDocuments('bulk_delete'));
16533+
1652816534
$docs = static::getDatabase()->find('bulk_delete');
1652916535
$this->assertCount(0, $docs);
1653016536

0 commit comments

Comments
 (0)