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.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/lib/Files/Cache/QuerySearchHelperTest.php b/tests/lib/Files/Cache/QuerySearchHelperTest.php
index 7ae0c2b38c2..46aa5a55493 100644
--- a/tests/lib/Files/Cache/QuerySearchHelperTest.php
+++ b/tests/lib/Files/Cache/QuerySearchHelperTest.php
@@ -25,11 +25,14 @@ use OC\DB\QueryBuilder\Literal;
use OC\Files\Cache\QuerySearchHelper;
use OC\Files\Search\SearchBinaryOperator;
use OC\Files\Search\SearchComparison;
+use OC\SystemConfig;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\Files\IMimeTypeLoader;
use OCP\Files\Search\ISearchBinaryOperator;
use OCP\Files\Search\ISearchComparison;
use OCP\Files\Search\ISearchOperator;
+use OCP\IDBConnection;
+use OCP\ILogger;
use Test\TestCase;
/**
@@ -75,7 +78,15 @@ class QuerySearchHelperTest extends TestCase {
[6, 'image']
]);
- $this->querySearchHelper = new QuerySearchHelper($this->mimetypeLoader);
+ $systemConfig = $this->createMock(SystemConfig::class);
+ $logger = $this->createMock(ILogger::class);
+
+ $this->querySearchHelper = new QuerySearchHelper(
+ $this->mimetypeLoader,
+ \OC::$server->get(IDBConnection::class),
+ $systemConfig,
+ $logger
+ );
$this->numericStorageId = 10000;
$this->builder->select(['fileid'])