Skip to content

Commit

Permalink
tests: don't reuse the query builder for multiple tables in CardDavBa…
Browse files Browse the repository at this point in the history
…ckendTest

Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Aug 5, 2024
1 parent 033f7b4 commit 80eeaff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/dav/tests/unit/CardDAV/CardDavBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
$vCardIds[] = $query->getLastInsertId();
}

$query = $this->db->getQueryBuilder();
$query->insert($this->dbCardsPropertiesTable)
->values(
[
Expand All @@ -687,6 +688,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
]
);
$query->execute();
$query = $this->db->getQueryBuilder();
$query->insert($this->dbCardsPropertiesTable)
->values(
[
Expand All @@ -698,6 +700,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
]
);
$query->execute();
$query = $this->db->getQueryBuilder();
$query->insert($this->dbCardsPropertiesTable)
->values(
[
Expand All @@ -709,6 +712,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
]
);
$query->execute();
$query = $this->db->getQueryBuilder();
$query->insert($this->dbCardsPropertiesTable)
->values(
[
Expand All @@ -720,6 +724,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
]
);
$query->execute();
$query = $this->db->getQueryBuilder();
$query->insert($this->dbCardsPropertiesTable)
->values(
[
Expand Down

0 comments on commit 80eeaff

Please sign in to comment.