mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(tests): Fix moveFromStorage test for encryption wrapper
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
ad68b06dcc
commit
afcbdf53dd
1 changed files with 7 additions and 0 deletions
|
|
@ -730,6 +730,13 @@ abstract class Storage extends \Test\TestCase {
|
|||
->method('filemtime')
|
||||
->with($source)
|
||||
->willReturn($mTime);
|
||||
$instance->expects(static::any())
|
||||
->method('getId')
|
||||
->willReturn('fakeid');
|
||||
$cache = $this->createMock(\OCP\Files\Cache\ICache::class);
|
||||
$instance->expects(static::any())
|
||||
->method('getCache')
|
||||
->willReturn($cache);
|
||||
|
||||
$this->assertFalse($this->instance->file_exists($target));
|
||||
$this->instance->moveFromStorage($instance, $source, $target);
|
||||
|
|
|
|||
Loading…
Reference in a new issue