diff options
author | itheiss <ingo.theiss@i-matrixx.de> | 2013-03-22 10:08:53 +0100 |
---|---|---|
committer | itheiss <ingo.theiss@i-matrixx.de> | 2013-03-22 10:08:53 +0100 |
commit | d00b2f610e71744b4f27348a43131516236d4f45 (patch) | |
tree | 6ee71c6879991d18da195ecd580da22a59cd7920 /tests/lib/util.php | |
parent | 568c256aff7b3de3a01d8a7ad32ca24430c79948 (diff) | |
download | nextcloud-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.php | 7 |
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 +} |