aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/util.php
diff options
context:
space:
mode:
authoritheiss <ingo.theiss@i-matrixx.de>2013-03-26 09:40:27 +0100
committeritheiss <ingo.theiss@i-matrixx.de>2013-03-26 09:40:27 +0100
commit410b9912219253553f9f8c9ecd3b9910364b9dde (patch)
tree3e55b3b583415c7a62d176f38ed0a961e74ec567 /tests/lib/util.php
parentd00b2f610e71744b4f27348a43131516236d4f45 (diff)
downloadnextcloud-server-410b9912219253553f9f8c9ecd3b9910364b9dde.tar.gz
nextcloud-server-410b9912219253553f9f8c9ecd3b9910364b9dde.zip
Move testcase to own test function
Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function.
Diffstat (limited to 'tests/lib/util.php')
-rw-r--r--tests/lib/util.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php
index c9b88271fb4..1c9054264c9 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);