File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments