Skip to content
Snippets Groups Projects
Unverified Commit fca8bd44 authored by Vincent Petry's avatar Vincent Petry Committed by Morris Jobke
Browse files

Fix shared storage namespace in DecryptAll class

parent 246bb9f3
No related branches found
No related tags found
No related merge requests found
...@@ -211,7 +211,7 @@ class DecryptAll { ...@@ -211,7 +211,7 @@ class DecryptAll {
$content = $this->rootView->getDirectoryContent($root); $content = $this->rootView->getDirectoryContent($root);
foreach ($content as $file) { foreach ($content as $file) {
// only decrypt files owned by the user // only decrypt files owned by the user
if($file->getStorage()->instanceOfStorage('OC\Files\Storage\Shared')) { if($file->getStorage()->instanceOfStorage('OCA\Files_Sharing\SharedStorage')) {
continue; continue;
} }
$path = $root . '/' . $file['name']; $path = $root . '/' . $file['name'];
......
...@@ -260,7 +260,7 @@ class DecryptAllTest extends TestCase { ...@@ -260,7 +260,7 @@ class DecryptAllTest extends TestCase {
->disableOriginalConstructor()->getMock(); ->disableOriginalConstructor()->getMock();
$sharedStorage->expects($this->once())->method('instanceOfStorage') $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') $this->view->expects($this->at(0))->method('getDirectoryContent')
->with('/user1/files')->willReturn( ->with('/user1/files')->willReturn(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment