summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-22 19:16:26 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-22 19:16:26 +0100
commita16f3adc1efc2198038325a78bc153daab6db213 (patch)
treebf8c1ca44c6cbabfb994891fc56e12b003cfd5e2
parent6f9af3659c9146a2ac1b08d70610bf96398ec073 (diff)
Add unit test for LdapBackendGroupProvider
-rw-r--r--tests/units/Group/LdapBackendGroupProviderTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/units/Group/LdapBackendGroupProviderTest.php b/tests/units/Group/LdapBackendGroupProviderTest.php
new file mode 100644
index 00000000..67b5ef35
--- /dev/null
+++ b/tests/units/Group/LdapBackendGroupProviderTest.php
@@ -0,0 +1,16 @@
+<?php
+
+require_once __DIR__.'/../Base.php';
+
+use Kanboard\Group\LdapBackendGroupProvider;
+
+class LdapBackendGroupProviderTest extends Base
+{
+ public function testGetLdapGroupPattern()
+ {
+ $this->setExpectedException('LogicException', 'LDAP group filter empty, check the parameter LDAP_GROUP_FILTER');
+
+ $backend = new LdapBackendGroupProvider($this->container);
+ $backend->getLdapGroupPattern('test');
+ }
+}