From ad3badeabff9dde839827558c281a691c611cf87 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Mon, 7 Jan 2013 01:03:11 +0100
Subject: [PATCH] Cache: split permission cache scanning and cache scanning

---
 tests/lib/files/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 4b0abc2201d..53271142672 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -43,7 +43,7 @@ class View extends \PHPUnit_Framework_TestCase {
 		$cachedData = $rootView->getFileInfo('/foo.txt');
 		$this->assertEquals($textSize, $cachedData['size']);
 		$this->assertEquals('text/plain', $cachedData['mimetype']);
-		$this->assertEquals(\OCP\PERMISSION_ALL ^ \OCP\PERMISSION_CREATE, $cachedData['permissions']);
+		$this->assertNotEquals(-1, $cachedData['permissions']);
 
 		$cachedData = $rootView->getFileInfo('/');
 		$this->assertEquals($storageSize * 3, $cachedData['size']);
-- 
GitLab