Skip to content

Commit 7465a0a

Browse files
committed
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 488fa21 commit 7465a0a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/lib/Files/ViewTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,9 @@ private function createTestMovableMountPoints($mountPoints) {
15501550
$storage->method('getStorageCache')->willReturnCallback(function () use ($storage) {
15511551
return new \OC\Files\Cache\Storage($storage, true, Server::get(IDBConnection::class));
15521552
});
1553+
$storage->method('getCache')->willReturnCallback(function () use ($storage) {
1554+
return new \OC\Files\Cache\Cache($storage);
1555+
});
15531556

15541557
$mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class)
15551558
->onlyMethods(['moveMount'])
@@ -1650,7 +1653,10 @@ public function testMoveMountPointIntoSharedFolder(): void {
16501653

16511654
$mount2->expects($this->once())
16521655
->method('moveMount')
1653-
->willReturn(true);
1656+
->willReturnCallback(function ($target) use ($mount2) {
1657+
$mount2->setMountPoint($target);
1658+
return true;
1659+
});
16541660

16551661
$view = new View('/' . $this->user . '/files/');
16561662
$view->mkdir('shareddir');

0 commit comments

Comments
 (0)