summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoricewind1991 <icewind1991@gmail.com>2013-05-07 10:00:00 -0700
committericewind1991 <icewind1991@gmail.com>2013-05-07 10:00:00 -0700
commit5b61c5d478ab5b4345bb1ab211550e60078c318a (patch)
treee0da01c80ca37edb142c6a55cb95bf243755132a /tests
parent349a533f667bdac2325a797dcee6007117063039 (diff)
parenteed5e9f804c0aac0467e1f502d86266ea232f350 (diff)
downloadnextcloud-server-5b61c5d478ab5b4345bb1ab211550e60078c318a.tar.gz
nextcloud-server-5b61c5d478ab5b4345bb1ab211550e60078c318a.zip
Merge pull request #3044 from owncloud/backgroundwatcher
Add a background job to watch for external filesystem changes
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'));