From bd00811d530ee634e9a8474dbc99c28e82f38afb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 25 Sep 2024 18:01:53 +0200 Subject: [PATCH] test: fix share storage move test with object store Signed-off-by: Robin Appelman --- apps/files_sharing/tests/SharedStorageTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_sharing/tests/SharedStorageTest.php b/apps/files_sharing/tests/SharedStorageTest.php index 5209a30634a6d..14fdba0ade3cf 100644 --- a/apps/files_sharing/tests/SharedStorageTest.php +++ b/apps/files_sharing/tests/SharedStorageTest.php @@ -479,6 +479,7 @@ public function testMoveFromStorage() { $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'));