summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-04-15 14:49:45 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-04-15 14:50:03 +0200
commit819af69972ca005656628005ff0c9f25824758a5 (patch)
treeb33747e875d62624354f4ca55ede9e3fa447f737 /apps/user_ldap/tests
parent0a46c7a393c9eda86eda1b450dcc10436626db4c (diff)
downloadnextcloud-server-819af69972ca005656628005ff0c9f25824758a5.tar.gz
nextcloud-server-819af69972ca005656628005ff0c9f25824758a5.zip
group LDAP: simple basic tests
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/group_ldap.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php
index b328153b8b5..2be6b46fb23 100644
--- a/apps/user_ldap/tests/group_ldap.php
+++ b/apps/user_ldap/tests/group_ldap.php
@@ -35,6 +35,12 @@ class Test_Group_Ldap extends UnitTestCase {
$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.
+
+ $this->assertIsA(OC_Group::getUserGroups('john doe'),gettype(array()));
+ $this->assertIsA($group_ldap->getUserGroups('john doe'),gettype(array()));
+
+ $this->assertIsA(OC_Group::usersInGroup('campers'),gettype(array()));
+ $this->assertIsA($group_ldap->usersInGroup('campers'),gettype(array()));
}
}