summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/KolabAdmin/Unit/BaseTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/KolabAdmin/Unit/BaseTest.php b/test/KolabAdmin/Unit/BaseTest.php
index 55e7f9b..f7b6f23 100644
--- a/test/KolabAdmin/Unit/BaseTest.php
+++ b/test/KolabAdmin/Unit/BaseTest.php
@@ -88,6 +88,19 @@ class KolabAdmin_Unit_BaseTest extends PHPUnit_Framework_TestCase
);
}
+ public function testCountmailReturnsZeroOnExistingMailWithEscapedDnCharactersIfDnExcluded()
+ {
+ $this->_add($this->_getTestUser(',=,'));
+ $this->assertEquals(
+ 0,
+ $this->ldap->countMail(
+ $_SESSION['base_dn'],
+ 'kolabadmin.test.,=,@' . $_SESSION['fqdnhostname'],
+ 'cn=' . $this->ldap->dn_escape('KolabAdmin TestUser,=,') . ',' . $_SESSION['base_dn']
+ )
+ );
+ }
+
public function testAddingObjectIsSuccessful()
{
$this->_add($this->_getTestUser());