mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
attemtp to fix test
This commit is contained in:
parent
82482adb48
commit
ab14c0322b
1 changed files with 7 additions and 1 deletions
|
|
@ -566,6 +566,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();
|
||||
|
||||
|
|
@ -597,7 +603,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'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue