summaryrefslogtreecommitdiffstats
path: root/tests/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/util.php')
-rw-r--r--tests/lib/util.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php
index b904c359807..c9b88271fb4 100644
--- a/tests/lib/util.php
+++ b/tests/lib/util.php
@@ -46,5 +46,10 @@ class Test_Util extends PHPUnit_Framework_TestCase {
function testGetDefaultEmailAddress() {
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
$this->assertEquals('no-reply@localhost.localdomain', $email);
+
+ OC_Config::setValue('mail_domain', 'example.com');
+ $email = \OCP\Util::getDefaultEmailAddress("no-reply");
+ $this->assertEquals('no-reply@example.com', $email);
+ OC_Config::deleteKey('mail_domain');
}
-} \ No newline at end of file
+}