From e95745c074c6d04cd271706a836eccbcc674cca8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 17 Nov 2021 16:44:11 +0100 Subject: fix tests Signed-off-by: Robin Appelman --- tests/lib/Files/Utils/ScannerTest.php | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'tests') 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, ''); -- cgit v1.2.3