]> source.dussan.org Git - nextcloud-server.git/commitdiff
test: don't reuse the query builder for multiple tables in CardDavBackendTest 46926/head
authorRobin Appelman <robin@icewind.nl>
Wed, 31 Jul 2024 15:36:14 +0000 (17:36 +0200)
committerRobin Appelman <robin@icewind.nl>
Fri, 2 Aug 2024 15:21:47 +0000 (17:21 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/dav/tests/unit/CardDAV/CardDavBackendTest.php

index b8887e6f930942011f019f1e1a45f8a9ac81c44f..0e9aed1caaf05ff6b2e8df910949a24b8d585a63 100644 (file)
@@ -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(
                                [