]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cache: split permission cache scanning and cache scanning
authorRobin Appelman <icewind@owncloud.com>
Mon, 7 Jan 2013 00:03:11 +0000 (01:03 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 7 Jan 2013 01:09:20 +0000 (02:09 +0100)
tests/lib/files/view.php

index 4b0abc2201debd3c287c96c7463955c789351bac..53271142672c48445ebe076da1f8a74813ed4dea 100644 (file)
@@ -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']);