aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/files/view.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index adbed5a18b6..051ae251627 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -72,6 +72,13 @@ class View extends \PHPUnit_Framework_TestCase {
$folderView = new \OC\Files\View('/folder');
$this->assertEquals($rootView->getFileInfo('/folder'), $folderView->getFileInfo('/'));
+
+ $cachedData = $rootView->getFileInfo('/foo.txt');
+ $this->assertFalse($cachedData['encrypted']);
+ $id = $rootView->putFileInfo('/foo.txt', array('encrypted' => true));
+ $cachedData = $rootView->getFileInfo('/foo.txt');
+ $this->assertTrue($cachedData['encrypted']);
+ $this->assertEquals($cachedData['fileid'], $id);
}
public function testAutoScan() {