aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-11-17 16:44:11 +0100
committerRobin Appelman <robin@icewind.nl>2021-12-02 17:43:16 +0100
commite95745c074c6d04cd271706a836eccbcc674cca8 (patch)
tree542c0862ba4d6bd72162b75b27a9eb18bc476d56 /tests/lib
parentdb2dcbfe132ffdbf7aced0905d9dec9ad09e26c2 (diff)
downloadnextcloud-server-e95745c074c6d04cd271706a836eccbcc674cca8.tar.gz
nextcloud-server-e95745c074c6d04cd271706a836eccbcc674cca8.zip
fix tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib')
-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, '');