summaryrefslogtreecommitdiff
path: root/test/KolabAdmin/Unit/BaseTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/KolabAdmin/Unit/BaseTest.php')
-rw-r--r--test/KolabAdmin/Unit/BaseTest.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/KolabAdmin/Unit/BaseTest.php b/test/KolabAdmin/Unit/BaseTest.php
index d75f49b..b91eaed 100644
--- a/test/KolabAdmin/Unit/BaseTest.php
+++ b/test/KolabAdmin/Unit/BaseTest.php
@@ -64,6 +64,18 @@ class KolabAdmin_Unit_BaseTest extends PHPUnit_Framework_TestCase
);
}
+ public function testCountmailReturnsOneOnExistingMail()
+ {
+ $this->_add($this->_getTestUser());
+ $this->assertEquals(
+ 1,
+ $this->ldap->countMail(
+ $_SESSION['base_dn'],
+ 'kolabadmin.test.@' . $_SESSION['fqdnhostname']
+ )
+ );
+ }
+
public function testAddingObjectIsSuccessful()
{
$this->_add($this->_getTestUser());
@@ -90,7 +102,7 @@ class KolabAdmin_Unit_BaseTest extends PHPUnit_Framework_TestCase
'sn' => 'TestUser' . $id,
'cn' => 'KolabAdmin TestUser' . $id,
'givenName' => 'KolabAdmin',
- 'mail' => 'kolabadmin.test.' . $id . $_SESSION['base_dn'],
+ 'mail' => 'kolabadmin.test.' . $id . '@' . $_SESSION['fqdnhostname'],
'uid' => 'kolabadmin.test.' . $id,
)
);