diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-12-19 19:53:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-01-10 16:14:21 +0100 |
commit | 00b17c3af5544b01d7834aa4c8a95c7b3bbf95ca (patch) | |
tree | 86ec6649479e1f31ee363cd0156700b50eae204b /tests | |
parent | 706655ef2000f00c66aa1c4387ab9fa7f60cc537 (diff) | |
download | nextcloud-server-00b17c3af5544b01d7834aa4c8a95c7b3bbf95ca.tar.gz nextcloud-server-00b17c3af5544b01d7834aa4c8a95c7b3bbf95ca.zip |
Only check for local shared storages
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Utils/ScannerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php index 6d6007551ce..1379bc2e906 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 OCA\Files_Sharing\SharedStorage; use OCP\Files\Config\IMountProvider; use OCP\Files\Storage\IStorageFactory; use OCP\IUser; @@ -190,14 +191,14 @@ class ScannerTest extends \Test\TestCase { } public function testSkipLocalShares() { - $sharedStorage = $this->createMock('OCA\Files_Sharing\SharedStorage'); + $sharedStorage = $this->createMock(SharedStorage::class); $sharedMount = new MountPoint($sharedStorage, '/share'); Filesystem::getMountManager()->addMount($sharedMount); $sharedStorage->expects($this->any()) ->method('instanceOfStorage') ->will($this->returnValueMap([ - ['OCA\Files_Sharing\ISharedStorage', true], + [SharedStorage::class, true], ])); $sharedStorage->expects($this->never()) ->method('getScanner'); |