summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php')
-rw-r--r--apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
index 3e22193fcbf..2633ccf544f 100644
--- a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
+++ b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
@@ -109,7 +109,12 @@ class CustomPropertiesBackendTest extends TestCase {
->from('properties')
->where($query->expr()->eq('userid', $query->createNamedParameter($user)))
->where($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
- return $query->execute()->fetchAll(\PDO::FETCH_KEY_PAIR);
+
+
+ $result = $query->execute();
+ $data = $result->fetchAll(\PDO::FETCH_KEY_PAIR);
+ $result->closeCursor();
+ return $data;
}
public function testPropFindNoDbCalls() {