diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/group_ldap.php new file mode 100644 index 0000000000..277a234892 --- /dev/null +++ b/apps/user_ldap/tests/group_ldap.php @@ -0,0 +1,36 @@ +. +* +*/ + +class Test_Group_Ldap extends UnitTestCase { + function setUp(){ + OC_Group::clearBackends(); + } + + function testSingleBackend(){ + OC_Group::useBackend(new OC_GROUP_LDAP()); + $group_ldap = new OC_GROUP_LDAP(); + + $this->assertIsA(OC_Group::getGroups(),gettype(array())); + $this->assertIsA($group_ldap->getGroups(),gettype(array())); + } + +}