group LDAP: simple basic tests

This commit is contained in:
Arthur Schiwon 2012-04-15 14:49:45 +02:00
parent 0a46c7a393
commit 819af69972
1 changed files with 6 additions and 0 deletions

View File

@ -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()));
}
}