summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-10 17:22:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-10 17:59:32 +0200
commit0878f722db3d576dbdf0b1e00a88d10890acdc4a (patch)
tree518a436fe011d93519ceef3c678d9e8d8d721c21 /tests
parent08e38a107290668795653dc0a5ae6f91330bc36a (diff)
downloadnextcloud-server-0878f722db3d576dbdf0b1e00a88d10890acdc4a.tar.gz
nextcloud-server-0878f722db3d576dbdf0b1e00a88d10890acdc4a.zip
Fix contructor in test
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);