diff options
author | Robin Appelman <robin@icewind.nl> | 2021-12-02 17:09:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 17:09:43 +0000 |
commit | 6b3c7037946bf63b5bd684c7f1ee3e72ea0e6148 (patch) | |
tree | 5d25af0f2d7f6a775034b3b149637f522f59d983 /tests | |
parent | 7acb438e428e5b0b3a79c2b7ce5a4283b0e805eb (diff) | |
parent | e95745c074c6d04cd271706a836eccbcc674cca8 (diff) | |
download | nextcloud-server-6b3c7037946bf63b5bd684c7f1ee3e72ea0e6148.tar.gz nextcloud-server-6b3c7037946bf63b5bd684c7f1ee3e72ea0e6148.zip |
Merge pull request #29735 from nextcloud/background-scan-one-by-one
find users for background scan one by one
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Utils/ScannerTest.php | 20 |
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, ''); |