Fix getMock scannertest

This commit is contained in:
Roeland Jago Douma 2016-09-12 21:29:38 +02:00
parent d277053f22
commit 5069b74f8b
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ namespace Test\Files\Utils;
use OC\Files\Filesystem; use OC\Files\Filesystem;
use OC\Files\Mount\MountPoint; use OC\Files\Mount\MountPoint;
use OC\Files\Storage\Temporary; use OC\Files\Storage\Temporary;
use OCP\Files\Config\IMountProvider;
use OCP\Files\Storage\IStorageFactory; use OCP\Files\Storage\IStorageFactory;
use OCP\IUser; use OCP\IUser;
@ -107,7 +108,7 @@ class ScannerTest extends \Test\TestCase {
$uid = $this->getUniqueID(); $uid = $this->getUniqueID();
$this->userBackend->createUser($uid, 'test'); $this->userBackend->createUser($uid, 'test');
$mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider'); $mountProvider = $this->createMock(IMountProvider::class);
$storage = new Temporary(array()); $storage = new Temporary(array());
$mount = new MountPoint($storage, '/' . $uid . '/files/foo'); $mount = new MountPoint($storage, '/' . $uid . '/files/foo');