From: Robin Appelman Date: Wed, 31 Jul 2024 15:36:14 +0000 (+0200) Subject: test: don't reuse the query builder for multiple tables in CardDavBackendTest X-Git-Tag: v30.0.0beta4~6^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F46926%2Fhead;p=nextcloud-server.git test: don't reuse the query builder for multiple tables in CardDavBackendTest Signed-off-by: Robin Appelman --- diff --git a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php index b8887e6f930..0e9aed1caaf 100644 --- a/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php +++ b/apps/dav/tests/unit/CardDAV/CardDavBackendTest.php @@ -676,6 +676,7 @@ class CardDavBackendTest extends TestCase { $vCardIds[] = $query->getLastInsertId(); } + $query = $this->db->getQueryBuilder(); $query->insert($this->dbCardsPropertiesTable) ->values( [ @@ -687,6 +688,7 @@ class CardDavBackendTest extends TestCase { ] ); $query->execute(); + $query = $this->db->getQueryBuilder(); $query->insert($this->dbCardsPropertiesTable) ->values( [ @@ -698,6 +700,7 @@ class CardDavBackendTest extends TestCase { ] ); $query->execute(); + $query = $this->db->getQueryBuilder(); $query->insert($this->dbCardsPropertiesTable) ->values( [ @@ -709,6 +712,7 @@ class CardDavBackendTest extends TestCase { ] ); $query->execute(); + $query = $this->db->getQueryBuilder(); $query->insert($this->dbCardsPropertiesTable) ->values( [ @@ -720,6 +724,7 @@ class CardDavBackendTest extends TestCase { ] ); $query->execute(); + $query = $this->db->getQueryBuilder(); $query->insert($this->dbCardsPropertiesTable) ->values( [