diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-04-20 16:38:03 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-04-20 16:38:03 +0200 |
commit | 15dae6198fc4855519a0ed2347c29485a061f6aa (patch) | |
tree | 50b30ba641fbf352865e79b8ca0ce6bb0a76bd9b /tests | |
parent | c50dfd725142abdbad93dbcf01fe13193445386a (diff) | |
download | nextcloud-server-15dae6198fc4855519a0ed2347c29485a061f6aa.tar.gz nextcloud-server-15dae6198fc4855519a0ed2347c29485a061f6aa.zip |
Cache: add a backgroundjob to check for external changes to the filesystem
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/cache/permissions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/files/cache/permissions.php b/tests/lib/files/cache/permissions.php index 56dbbc4518e..7e6e11e2eb2 100644 --- a/tests/lib/files/cache/permissions.php +++ b/tests/lib/files/cache/permissions.php @@ -14,8 +14,8 @@ class Permissions extends \PHPUnit_Framework_TestCase { */ private $permissionsCache; - function setUp(){ - $this->permissionsCache=new \OC\Files\Cache\Permissions('dummy'); + function setUp() { + $this->permissionsCache = new \OC\Files\Cache\Permissions('dummy'); } function testSimple() { @@ -23,8 +23,10 @@ class Permissions extends \PHPUnit_Framework_TestCase { $user = uniqid(); $this->assertEquals(-1, $this->permissionsCache->get(1, $user)); + $this->assertNotContains($user, $this->permissionsCache->getUsers(1)); $this->permissionsCache->set(1, $user, 1); $this->assertEquals(1, $this->permissionsCache->get(1, $user)); + $this->assertContains($user, $this->permissionsCache->getUsers(1)); $this->assertEquals(-1, $this->permissionsCache->get(2, $user)); $this->assertEquals(-1, $this->permissionsCache->get(1, $user . '2')); |