From 8b0051eb4005522fef2d92f0a18ffaea673bc4e4 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 6 Aug 2017 21:33:16 +0200 Subject: Fix encryption test Signed-off-by: Roeland Jago Douma --- tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 5 +++-- 1 file 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( -- cgit v1.2.3