From d00b2f610e71744b4f27348a43131516236d4f45 Mon Sep 17 00:00:00 2001 From: itheiss Date: Fri, 22 Mar 2013 10:08:53 +0100 Subject: [PATCH] Extend test case for getDefaultEmailAddress() see #2499 --- tests/lib/util.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 +} -- 2.39.5