diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-10 10:29:23 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-06-10 10:29:42 +0200 |
commit | 6667007bf235b90a7dd105c881cf5802b2a3f83e (patch) | |
tree | 33ef234e93b5546fbadd94e1743b988924d4a036 /apps/files_sharing/tests/External/ScannerTest.php | |
parent | cc65bfe6243c954d1401bff870814701cb4c3241 (diff) | |
download | nextcloud-server-6667007bf235b90a7dd105c881cf5802b2a3f83e.tar.gz nextcloud-server-6667007bf235b90a7dd105c881cf5802b2a3f83e.zip |
Revert "Remove inefficient fed share scanner"
This reverts commit ce319143142e2ee998ef4794b04ad684c4ffa911.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing/tests/External/ScannerTest.php')
-rw-r--r-- | apps/files_sharing/tests/External/ScannerTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/External/ScannerTest.php b/apps/files_sharing/tests/External/ScannerTest.php index 2d2486737dc..57696a697eb 100644 --- a/apps/files_sharing/tests/External/ScannerTest.php +++ b/apps/files_sharing/tests/External/ScannerTest.php @@ -50,6 +50,18 @@ class ScannerTest extends TestCase { $this->scanner = new Scanner($this->storage); } + public function testScanAll() { + $this->storage->expects($this->any()) + ->method('getShareInfo') + ->willReturn(['status' => 'success', 'data' => []]); + + // FIXME add real tests, we are currently only checking for + // Declaration of OCA\Files_Sharing\External\Scanner::*() should be + // compatible with OC\Files\Cache\Scanner::*() + $this->scanner->scanAll(); + $this->addToAssertionCount(1); + } + public function testScan() { $this->storage->expects($this->any()) ->method('getShareInfo') |