summaryrefslogtreecommitdiffstats
path: root/tests/lib/util.php
diff options
context:
space:
mode:
authoritheiss <ingo.theiss@i-matrixx.de>2013-03-22 10:08:53 +0100
committeritheiss <ingo.theiss@i-matrixx.de>2013-03-22 10:08:53 +0100
commitd00b2f610e71744b4f27348a43131516236d4f45 (patch)
tree6ee71c6879991d18da195ecd580da22a59cd7920 /tests/lib/util.php
parent568c256aff7b3de3a01d8a7ad32ca24430c79948 (diff)
downloadnextcloud-server-d00b2f610e71744b4f27348a43131516236d4f45.tar.gz
nextcloud-server-d00b2f610e71744b4f27348a43131516236d4f45.zip
Extend test case for getDefaultEmailAddress()
see #2499
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
+}