From da3974bcb210a6580c974e1b2efebcae26ccf708 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 3 Jun 2014 17:57:56 +0200 Subject: - drop permissions table and related code - the file/folder's permission is now stored in the file cache - BackGroundWatcher has been removed - this has meanwhile be replaced by occ files:scan which can be executed in a cron jobs - increase version to trigger database migration --- tests/lib/files/node/folder.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/lib/files/node') diff --git a/tests/lib/files/node/folder.php b/tests/lib/files/node/folder.php index b1589a276ba..08200f35f57 100644 --- a/tests/lib/files/node/folder.php +++ b/tests/lib/files/node/folder.php @@ -155,19 +155,11 @@ class Folder extends \PHPUnit_Framework_TestCase { array('fileid' => 3, 'path' => '/bar/foo/qwerty', 'name' => 'qwerty', 'size' => 200, 'mtime' => 55, 'mimetype' => 'httpd/unix-directory') ))); - $permissionsCache = $this->getMock('\OC\Files\Cache\Permissions', array(), array('/')); - $permissionsCache->expects($this->once()) - ->method('getDirectoryPermissions') - ->will($this->returnValue(array(2 => \OCP\PERMISSION_ALL))); - $root->expects($this->once()) ->method('getMountsIn') ->with('/bar/foo') ->will($this->returnValue(array())); - $storage->expects($this->any()) - ->method('getPermissionsCache') - ->will($this->returnValue($permissionsCache)); $storage->expects($this->any()) ->method('getCache') ->will($this->returnValue($cache)); -- cgit v1.2.3