aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Share/ShareTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-24 18:05:08 +0200
committerJoas Schilling <coding@schilljs.com>2017-08-02 09:48:16 +0200
commit2f8756754ff62a199cd6cc2a530a14fe5bd77c17 (patch)
tree6e134239c51276b9f4c0f763a1345f0a4a535504 /tests/lib/Share/ShareTest.php
parent293dea0625ba76969c05fda47b2f5400bbaf523e (diff)
downloadnextcloud-server-2f8756754ff62a199cd6cc2a530a14fe5bd77c17.tar.gz
nextcloud-server-2f8756754ff62a199cd6cc2a530a14fe5bd77c17.zip
Fix last failures with oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Share/ShareTest.php')
-rw-r--r--tests/lib/Share/ShareTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/Share/ShareTest.php b/tests/lib/Share/ShareTest.php
index 40e88d597a4..4ce40a2accd 100644
--- a/tests/lib/Share/ShareTest.php
+++ b/tests/lib/Share/ShareTest.php
@@ -1246,7 +1246,9 @@ class ShareTest extends \Test\TestCase {
->setParameter('owner', $this->user1->getUID())
->setParameter('share_type', \OCP\Share::SHARE_TYPE_LINK);
- $res = $qb->execute()->fetchAll();
+ $result = $qb->execute();
+ $res = $result->fetchAll();
+ $result->closeCursor();
$this->assertCount(1, $res);
$id = $res[0]['id'];
@@ -1260,7 +1262,9 @@ class ShareTest extends \Test\TestCase {
->from('share')
->where($qb->expr()->eq('id', $qb->createParameter('id')))
->setParameter('id', $id);
- $hash = $qb->execute()->fetch()['share_with'];
+ $result = $qb->execute();
+ $hash = $result->fetch()['share_with'];
+ $result->closeCursor();
$hasher = \OC::$server->getHasher();