summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-04-20 16:38:03 +0200
committerRobin Appelman <icewind@owncloud.com>2013-04-20 16:38:03 +0200
commit15dae6198fc4855519a0ed2347c29485a061f6aa (patch)
tree50b30ba641fbf352865e79b8ca0ce6bb0a76bd9b /tests
parentc50dfd725142abdbad93dbcf01fe13193445386a (diff)
downloadnextcloud-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.php6
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'));