Skip to content

Commit 80eeaff

Browse files
committed
tests: don't reuse the query builder for multiple tables in CardDavBackendTest
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 033f7b4 commit 80eeaff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/dav/tests/unit/CardDAV/CardDavBackendTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
676676
$vCardIds[] = $query->getLastInsertId();
677677
}
678678

679+
$query = $this->db->getQueryBuilder();
679680
$query->insert($this->dbCardsPropertiesTable)
680681
->values(
681682
[
@@ -687,6 +688,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
687688
]
688689
);
689690
$query->execute();
691+
$query = $this->db->getQueryBuilder();
690692
$query->insert($this->dbCardsPropertiesTable)
691693
->values(
692694
[
@@ -698,6 +700,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
698700
]
699701
);
700702
$query->execute();
703+
$query = $this->db->getQueryBuilder();
701704
$query->insert($this->dbCardsPropertiesTable)
702705
->values(
703706
[
@@ -709,6 +712,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
709712
]
710713
);
711714
$query->execute();
715+
$query = $this->db->getQueryBuilder();
712716
$query->insert($this->dbCardsPropertiesTable)
713717
->values(
714718
[
@@ -720,6 +724,7 @@ public function testSearch($pattern, $properties, $options, $expected): void {
720724
]
721725
);
722726
$query->execute();
727+
$query = $this->db->getQueryBuilder();
723728
$query->insert($this->dbCardsPropertiesTable)
724729
->values(
725730
[

0 commit comments

Comments
 (0)