aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-12 21:29:38 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-13 09:09:52 +0200
commit5069b74f8b188c91767c003d19269497a1fe1f07 (patch)
treebc7c2791f03c7a98d51c876549b54ff118530d2c
parentd277053f2235d33ae94da507de7244b9c33a6ae9 (diff)
downloadnextcloud-server-5069b74f8b188c91767c003d19269497a1fe1f07.tar.gz
nextcloud-server-5069b74f8b188c91767c003d19269497a1fe1f07.zip
Fix getMock scannertest
-rw-r--r--tests/lib/Files/Utils/ScannerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php
index 0c8e41c24c7..7895331d615 100644
--- a/tests/lib/Files/Utils/ScannerTest.php
+++ b/tests/lib/Files/Utils/ScannerTest.php
@@ -11,6 +11,7 @@ namespace Test\Files\Utils;
use OC\Files\Filesystem;
use OC\Files\Mount\MountPoint;
use OC\Files\Storage\Temporary;
+use OCP\Files\Config\IMountProvider;
use OCP\Files\Storage\IStorageFactory;
use OCP\IUser;
@@ -107,7 +108,7 @@ class ScannerTest extends \Test\TestCase {
$uid = $this->getUniqueID();
$this->userBackend->createUser($uid, 'test');
- $mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider');
+ $mountProvider = $this->createMock(IMountProvider::class);
$storage = new Temporary(array());
$mount = new MountPoint($storage, '/' . $uid . '/files/foo');