summaryrefslogtreecommitdiffstats
path: root/tests/lib/Accounts/AccountsManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Accounts/AccountsManagerTest.php')
-rw-r--r--tests/lib/Accounts/AccountsManagerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/Accounts/AccountsManagerTest.php b/tests/lib/Accounts/AccountsManagerTest.php
index de9cc706b6a..ff75b51d008 100644
--- a/tests/lib/Accounts/AccountsManagerTest.php
+++ b/tests/lib/Accounts/AccountsManagerTest.php
@@ -248,7 +248,10 @@ class AccountsManagerTest extends TestCase {
->where($query->expr()->eq('uid', $query->createParameter('uid')))
->setParameter('uid', $uid);
$query->execute();
- $result = $query->execute()->fetchAll();
+
+ $qResult = $query->execute();
+ $result = $qResult->fetchAll();
+ $qResult->closeCursor();
if (!empty($result)) {
return json_decode($result[0]['data'], true);