aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-25 18:01:53 +0200
committerRobin Appelman <robin@icewind.nl>2024-09-27 14:45:43 +0200
commitf8a59b56b4791413b5ac36459e8b92ed6017b19b (patch)
treef0b8c4ca41c8677d286496d5f3b338e81127e2b4 /apps/files_sharing/tests
parent888d06dff99457218a095ccc4afd98630e321ac9 (diff)
downloadnextcloud-server-f8a59b56b4791413b5ac36459e8b92ed6017b19b.tar.gz
nextcloud-server-f8a59b56b4791413b5ac36459e8b92ed6017b19b.zip
test: fix share storage move test with object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r--apps/files_sharing/tests/SharedStorageTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/SharedStorageTest.php b/apps/files_sharing/tests/SharedStorageTest.php
index 49ff97c053a..430dd158bc3 100644
--- a/apps/files_sharing/tests/SharedStorageTest.php
+++ b/apps/files_sharing/tests/SharedStorageTest.php
@@ -451,6 +451,7 @@ class SharedStorageTest extends TestCase {
$sourceStorage = new \OC\Files\Storage\Temporary([]);
$sourceStorage->file_put_contents('foo.txt', 'asd');
+ $sourceStorage->getScanner()->scan('');
$sharedStorage->moveFromStorage($sourceStorage, 'foo.txt', 'bar.txt');
$this->assertTrue($sharedStorage->file_exists('bar.txt'));