Skip to content
Snippets Groups Projects
Commit 819af699 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

group LDAP: simple basic tests

parent 0a46c7a3
No related branches found
No related tags found
No related merge requests found
......@@ -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()));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment