diff options
Diffstat (limited to 'tests/units/Group')
-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'); + } +} |