aboutsummaryrefslogtreecommitdiffstats
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, 5 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
index 2633ccf544f..86a88b3ccdc 100644
--- a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
+++ b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
@@ -110,10 +110,13 @@ class CustomPropertiesBackendTest extends TestCase {
->where($query->expr()->eq('userid', $query->createNamedParameter($user)))
->where($query->expr()->eq('propertypath', $query->createNamedParameter($this->formatPath($path))));
-
$result = $query->execute();
- $data = $result->fetchAll(\PDO::FETCH_KEY_PAIR);
+ $data = [];
+ while ($row = $result->fetch()) {
+ $data[$row['propertyname']] = $row['propertyvalue'];
+ }
$result->closeCursor();
+
return $data;
}