From 5069b74f8b188c91767c003d19269497a1fe1f07 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 12 Sep 2016 21:29:38 +0200 Subject: [PATCH] Fix getMock scannertest --- tests/lib/Files/Utils/ScannerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php index 0c8e41c24c..7895331d61 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');