Skip to content
Snippets Groups Projects
Unverified Commit b15babd0 authored by Björn Schießle's avatar Björn Schießle Committed by Vincent Petry
Browse files

fix unit tests

parent 1423cf1d
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ namespace Test\Encryption; ...@@ -26,6 +26,7 @@ namespace Test\Encryption;
use OC\Encryption\DecryptAll; use OC\Encryption\DecryptAll;
use OC\Encryption\Exceptions\DecryptionFailedException; use OC\Encryption\Exceptions\DecryptionFailedException;
use OC\Encryption\Manager; use OC\Encryption\Manager;
use OC\Files\FileInfo;
use OC\Files\View; use OC\Files\View;
use OCP\IUserManager; use OCP\IUserManager;
use Test\TestCase; use Test\TestCase;
...@@ -242,15 +243,15 @@ class DecryptAllTest extends TestCase { ...@@ -242,15 +243,15 @@ class DecryptAllTest extends TestCase {
$this->view->expects($this->at(0))->method('getDirectoryContent') $this->view->expects($this->at(0))->method('getDirectoryContent')
->with('/user1/files')->willReturn( ->with('/user1/files')->willReturn(
[ [
['name' => 'foo', 'type'=>'dir'], new FileInfo('path', null, 'intPath', ['name' => 'foo', 'type'=>'dir'], null),
['name' => 'bar', 'type'=>'file'], new FileInfo('path', null, 'intPath', ['name' => 'bar', 'type'=>'file', 'encrypted'=>true], null)
] ]
); );
$this->view->expects($this->at(3))->method('getDirectoryContent') $this->view->expects($this->at(3))->method('getDirectoryContent')
->with('/user1/files/foo')->willReturn( ->with('/user1/files/foo')->willReturn(
[ [
['name' => 'subfile', 'type'=>'file'] new FileInfo('path', null, 'intPath', ['name' => 'subfile', 'type'=>'file', 'encrypted'=>true], null)
] ]
); );
......
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