Skip to content

Commit

Permalink
Merge pull request nextcloud#46926 from nextcloud/carddavtest-querybu…
Browse files Browse the repository at this point in the history
…ilder-reuse

tests: don't reuse the query builder for multiple tables in CardDavBackendTest
  • Loading branch information
sorbaugh authored Aug 6, 2024
2 parents f1cc819 + 192d176 commit f5de5a6
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 f5de5a6

Please sign in to comment.