diff options
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 5 |
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( |