summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/utils/scanner.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/files/utils/scanner.php b/tests/lib/files/utils/scanner.php
index 5e5cc6ac128..27b9b8dd4f4 100644
--- a/tests/lib/files/utils/scanner.php
+++ b/tests/lib/files/utils/scanner.php
@@ -49,7 +49,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
$storage->file_put_contents('foo.txt', 'qwerty');
$storage->file_put_contents('folder/bar.txt', 'qwerty');
- $scanner = new TestScanner('');
+ $scanner = new TestScanner('', \OC::$server->getDatabaseConnection());
$scanner->addMount($mount);
$scanner->scan('');
@@ -71,7 +71,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
$storage->file_put_contents('foo.txt', 'qwerty');
$storage->file_put_contents('folder/bar.txt', 'qwerty');
- $scanner = new TestScanner('');
+ $scanner = new TestScanner('', \OC::$server->getDatabaseConnection());
$scanner->addMount($mount);
$scanner->scan('');
@@ -98,7 +98,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
$storage->file_put_contents('foo.txt', 'qwerty');
$storage->file_put_contents('folder/bar.txt', 'qwerty');
- $scanner = new TestScanner('');
+ $scanner = new TestScanner('', \OC::$server->getDatabaseConnection());
$originalPropagator = $scanner->getPropagator();
$scanner->setPropagator($propagator);
$scanner->addMount($mount);