summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-04-04 12:50:54 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-04 12:50:54 +0200
commit73e6eea57e0454a74b6b461e15d2c4fac61ed524 (patch)
tree3e06367ce3e0f2de7c0b5953819c499349ad7a39 /tests
parent37233471b6698f798c9f0b9bf0286c4d9c342204 (diff)
downloadnextcloud-server-73e6eea57e0454a74b6b461e15d2c4fac61ed524.tar.gz
nextcloud-server-73e6eea57e0454a74b6b461e15d2c4fac61ed524.zip
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncryptionTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
index 082c08b3e43..22c93ee0a91 100644
--- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
+++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
@@ -730,6 +730,8 @@ class EncryptionTest extends Storage {
$temp = \OC::$server->getTempManager();
return fopen($temp->getTemporaryFile(), $mode);
});
+ $storage2->method('getId')
+ ->willReturn('stroage2');
$cache = $this->createMock(ICache::class);
$cache->expects($this->once())
->method('get')
@@ -777,6 +779,8 @@ class EncryptionTest extends Storage {
$temp = \OC::$server->getTempManager();
return fopen($temp->getTemporaryFile(), $mode);
});
+ $storage2->method('getId')
+ ->willReturn('stroage2');
if($expectedEncrypted) {
$cache = $this->createMock(ICache::class);
$cache->expects($this->once())