From e160acefe3fd60ef92fe76b9e637c12e3f03918d Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sat, 14 Apr 2012 18:05:52 +0200 Subject: [PATCH] test for ldap group backend --- apps/user_ldap/tests/group_ldap.php | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 apps/user_ldap/tests/group_ldap.php 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())); + } + +}