summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Cache/QuerySearchHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Cache/QuerySearchHelperTest.php')
-rw-r--r--tests/lib/Files/Cache/QuerySearchHelperTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Files/Cache/QuerySearchHelperTest.php b/tests/lib/Files/Cache/QuerySearchHelperTest.php
index 8f97e0158fe..8344460f757 100644
--- a/tests/lib/Files/Cache/QuerySearchHelperTest.php
+++ b/tests/lib/Files/Cache/QuerySearchHelperTest.php
@@ -136,7 +136,12 @@ class QuerySearchHelperTest extends TestCase {
private function search(ISearchOperator $operator) {
$dbOperator = $this->querySearchHelper->searchOperatorToDBExpr($this->builder, $operator);
$this->builder->andWhere($dbOperator);
- return $this->builder->execute()->fetchAll(\PDO::FETCH_COLUMN);
+
+ $result = $this->builder->execute();
+ $rows = $result->fetchAll(\PDO::FETCH_COLUMN);
+ $result->closeCursor();
+
+ return $rows;
}
public function comparisonProvider() {