mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
fad6a86cc8
commit
15cef14219
1 changed files with 7 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue