summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-08-06 21:33:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-09 15:51:08 +0200
commit8b0051eb4005522fef2d92f0a18ffaea673bc4e4 (patch)
tree44eda9d1d24a40c5453ae5763d059d956d81e3b9 /tests
parent3bd104ef7c32ca4e1616c9caade1fb59dd1aab29 (diff)
downloadnextcloud-server-8b0051eb4005522fef2d92f0a18ffaea673bc4e4.tar.gz
nextcloud-server-8b0051eb4005522fef2d92f0a18ffaea673bc4e4.zip
Fix encryption test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncryptionTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
index a66ff14a778..80d62b16578 100644
--- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
+++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
@@ -173,8 +173,9 @@ class EncryptionTest extends Storage {
->method('get')
->willReturnCallback(function($path) {return ['encrypted' => false, 'path' => $path];});
- $this->mountManager = $this->getMockBuilder('\OC\Files\Mount\Manager')
- ->disableOriginalConstructor()->getMock();
+ $this->mountManager = $this->createMock(\OC\Files\Mount\Manager::class);
+ $this->mountManager->method('findByStorageId')
+ ->willReturn([]);
$this->instance = $this->getMockBuilder('\OC\Files\Storage\Wrapper\Encryption')
->setConstructorArgs(