diff options
author | Jasper Knockaert <jasper@knockaert.nl> | 2021-01-05 21:09:16 +0300 |
---|---|---|
committer | MichaIng (Rebase PR Action) <micha@dietpi.com> | 2021-09-03 16:42:09 +0300 |
commit | 0af8a0c8f067000fed42191e96d859740dc15168 (patch) | |
tree | b92433a0df0c865ccbb8c121e0af3e3e81954a7d /tests | |
parent | 1bca62fa1aff23f53d20276bf17da2b9ad553b2c (diff) |
attemtp to fix test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php index eccec7c28d5..ef524a55fda 100644 --- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php @@ -560,6 +560,12 @@ class EncryptionTest extends Storage { * @param string $strippedPath */ public function testGetHeader($path, $strippedPathExists, $strippedPath) { + $cache = $this->getMockBuilder('\OC\Files\Cache\Cache') + ->disableOriginalConstructor()->getMock(); + $cache->expects($this->any()) + ->method('get') + ->willReturn(['encrypted' => true]); + $sourceStorage = $this->getMockBuilder('\OC\Files\Storage\Storage') ->disableOriginalConstructor()->getMock(); @@ -586,7 +592,7 @@ class EncryptionTest extends Storage { $this->encryptionManager, $util, $this->logger, $this->file, null, $this->keyStore, $this->update, $this->mountManager, $this->arrayCache ] ) - ->setMethods(['readFirstBlock', 'parseRawHeader']) + ->setMethods(['getCache','readFirstBlock', 'parseRawHeader']) ->getMock(); $instance->expects($this->once())->method(('parseRawHeader')) |