summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Utils/ScannerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Utils/ScannerTest.php')
-rw-r--r--tests/lib/Files/Utils/ScannerTest.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/lib/Files/Utils/ScannerTest.php b/tests/lib/Files/Utils/ScannerTest.php
index abd72416ffd..414d38bae06 100644
--- a/tests/lib/Files/Utils/ScannerTest.php
+++ b/tests/lib/Files/Utils/ScannerTest.php
@@ -11,7 +11,6 @@ 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\EventDispatcher\IEventDispatcher;
use OCP\Files\Config\IMountProvider;
use OCP\Files\Storage\IStorageFactory;
@@ -192,25 +191,6 @@ class ScannerTest extends \Test\TestCase {
$this->assertNotEquals($oldRoot->getEtag(), $newRoot->getEtag());
}
- public function testSkipLocalShares() {
- $sharedStorage = $this->createMock(SharedStorage::class);
- $sharedMount = new MountPoint($sharedStorage, '/share');
- Filesystem::getMountManager()->addMount($sharedMount);
-
- $sharedStorage->method('instanceOfStorage')
- ->willReturnCallback(function (string $c) {
- return $c === SharedStorage::class;
- });
- $sharedStorage->expects($this->never())
- ->method('getScanner');
-
- $scanner = new TestScanner('', \OC::$server->getDatabaseConnection(), $this->createMock(IEventDispatcher::class), \OC::$server->getLogger());
- $scanner->addMount($sharedMount);
- $scanner->scan('');
-
- $scanner->backgroundScan('');
- }
-
public function testShallow() {
$storage = new Temporary([]);
$mount = new MountPoint($storage, '');