Fix getMock scannertest
This commit is contained in:
parent
d277053f22
commit
5069b74f8b
1 changed files with 2 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue