From d22b132ee78759feac222e19ad8c74f152b6250d 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 49ff97c053a92..430dd158bc394 100644 --- a/apps/files_sharing/tests/SharedStorageTest.php +++ b/apps/files_sharing/tests/SharedStorageTest.php @@ -451,6 +451,7 @@ public function testMoveFromStorage(): void { $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'));