From 410b9912219253553f9f8c9ecd3b9910364b9dde Mon Sep 17 00:00:00 2001 From: itheiss Date: Tue, 26 Mar 2013 09:40:27 +0100 Subject: [PATCH] Move testcase to own test function Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function. --- tests/lib/util.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/lib/util.php b/tests/lib/util.php index c9b88271fb..1c9054264c 100644 --- a/tests/lib/util.php +++ b/tests/lib/util.php @@ -46,7 +46,9 @@ class Test_Util extends PHPUnit_Framework_TestCase { function testGetDefaultEmailAddress() { $email = \OCP\Util::getDefaultEmailAddress("no-reply"); $this->assertEquals('no-reply@localhost.localdomain', $email); - + } + + function testGetDefaultEmailAddressFromConfig() { OC_Config::setValue('mail_domain', 'example.com'); $email = \OCP\Util::getDefaultEmailAddress("no-reply"); $this->assertEquals('no-reply@example.com', $email);