Unverified Commit c0ffbddb authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix shared storage namespace in DecryptAll class

parent a5d9a646
......@@ -210,7 +210,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'];
......
......@@ -239,7 +239,7 @@ class DecryptAllTest extends TestCase {
}
public function testDecryptUsersFiles() {
$storage = $this->getMockBuilder('OC\Files\Storage\Shared')
$storage = $this->getMockBuilder('OCA\Files_Sharing\SharedStorage')
->disableOriginalConstructor()
->getMock();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment