fix(tests): Fix moveFromStorage test for encryption wrapper

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-02-22 10:39:06 +01:00
parent ad68b06dcc
commit afcbdf53dd
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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);