test: adjust tests

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-03-16 15:40:11 +01:00 committed by Louis Chmn
parent fad6a86cc8
commit 15cef14219

View file

@ -1550,6 +1550,9 @@ class ViewTest extends \Test\TestCase {
$storage->method('getStorageCache')->willReturnCallback(function () use ($storage) {
return new \OC\Files\Cache\Storage($storage, true, Server::get(IDBConnection::class));
});
$storage->method('getCache')->willReturnCallback(function () use ($storage) {
return new \OC\Files\Cache\Cache($storage);
});
$mounts[] = $this->getMockBuilder(TestMoveableMountPoint::class)
->onlyMethods(['moveMount'])
@ -1650,7 +1653,10 @@ class ViewTest extends \Test\TestCase {
$mount2->expects($this->once())
->method('moveMount')
->willReturn(true);
->willReturnCallback(function ($target) use ($mount2) {
$mount2->setMountPoint($target);
return true;
});
$view = new View('/' . $this->user . '/files/');
$view->mkdir('shareddir');