summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-04-15 13:37:35 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-04-15 14:50:03 +0200
commit54a9fd2e6ab90555908897da66219a4d615af136 (patch)
tree1f4762bd64a59517f4e6785a23d46f343609bc8a /apps/user_ldap/tests
parent1f91224f9e8363d13fba56efceb26e751ac9728a (diff)
downloadnextcloud-server-54a9fd2e6ab90555908897da66219a4d615af136.tar.gz
nextcloud-server-54a9fd2e6ab90555908897da66219a4d615af136.zip
group LDAP: implemented inGroup()
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/group_ldap.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php
index 277a2348925..b328153b8b5 100644
--- a/apps/user_ldap/tests/group_ldap.php
+++ b/apps/user_ldap/tests/group_ldap.php
@@ -31,6 +31,10 @@ class Test_Group_Ldap extends UnitTestCase {
$this->assertIsA(OC_Group::getGroups(),gettype(array()));
$this->assertIsA($group_ldap->getGroups(),gettype(array()));
+
+ $this->assertFalse(OC_Group::inGroup('john','dosers'),gettype(false));
+ $this->assertFalse($group_ldap->inGroup('john','dosers'),gettype(false));
+ //TODO: check also for expected true result. This backend won't be able to do any modifications, maybe use a dummy for this.
}
}