diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-22 19:16:26 +0100 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-22 19:16:26 +0100 |
commit | a16f3adc1efc2198038325a78bc153daab6db213 (patch) | |
tree | bf8c1ca44c6cbabfb994891fc56e12b003cfd5e2 /tests/units/Group/LdapBackendGroupProviderTest.php | |
parent | 6f9af3659c9146a2ac1b08d70610bf96398ec073 (diff) |
Add unit test for LdapBackendGroupProvider
Diffstat (limited to 'tests/units/Group/LdapBackendGroupProviderTest.php')
-rw-r--r-- | tests/units/Group/LdapBackendGroupProviderTest.php | 16 |
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'); + } +} |