Fix shared storage namespace in DecryptAll class

pull/1835/head
Vincent Petry 9 years ago committed by Morris Jobke
parent 246bb9f33d
commit fca8bd44ab
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
  1. 2
      lib/private/Encryption/DecryptAll.php
  2. 2
      tests/lib/Encryption/DecryptAllTest.php

@ -211,7 +211,7 @@ class DecryptAll {
$content = $this->rootView->getDirectoryContent($root);
foreach ($content as $file) {
// only decrypt files owned by the user
if($file->getStorage()->instanceOfStorage('OC\Files\Storage\Shared')) {
if($file->getStorage()->instanceOfStorage('OCA\Files_Sharing\SharedStorage')) {
continue;
}
$path = $root . '/' . $file['name'];

@ -260,7 +260,7 @@ class DecryptAllTest extends TestCase {
->disableOriginalConstructor()->getMock();
$sharedStorage->expects($this->once())->method('instanceOfStorage')
->with('OC\Files\Storage\Shared')->willReturn(true);
->with('OCA\Files_Sharing\SharedStorage')->willReturn(true);
$this->view->expects($this->at(0))->method('getDirectoryContent')
->with('/user1/files')->willReturn(

Loading…
Cancel
Save