]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix unit tests
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 25 May 2016 13:42:33 +0000 (15:42 +0200)
committerVincent Petry <pvince81@owncloud.com>
Mon, 30 May 2016 12:49:27 +0000 (14:49 +0200)
tests/lib/Encryption/DecryptAllTest.php

index 85fbe3e0ed95408df016df4bc34e1b6c4af2f4b0..ffcbbc74a99a566953633f176f8afa1e7a11bc2e 100644 (file)
@@ -26,6 +26,7 @@ namespace Test\Encryption;
 use OC\Encryption\DecryptAll;
 use OC\Encryption\Exceptions\DecryptionFailedException;
 use OC\Encryption\Manager;
+use OC\Files\FileInfo;
 use OC\Files\View;
 use OCP\IUserManager;
 use Test\TestCase;
@@ -242,15 +243,15 @@ class DecryptAllTest extends TestCase {
                $this->view->expects($this->at(0))->method('getDirectoryContent')
                        ->with('/user1/files')->willReturn(
                                [
-                                       ['name' => 'foo', 'type'=>'dir'],
-                                       ['name' => 'bar', 'type'=>'file'],
+                                       new FileInfo('path', null, 'intPath', ['name' => 'foo', 'type'=>'dir'], null),
+                                       new FileInfo('path', null, 'intPath', ['name' => 'bar', 'type'=>'file', 'encrypted'=>true], null)
                                ]
                        );
 
                $this->view->expects($this->at(3))->method('getDirectoryContent')
                        ->with('/user1/files/foo')->willReturn(
                                [
-                                       ['name' => 'subfile', 'type'=>'file']
+                                       new FileInfo('path', null, 'intPath', ['name' => 'subfile', 'type'=>'file', 'encrypted'=>true], null)
                                ]
                        );