From: itheiss Date: Tue, 26 Mar 2013 08:40:27 +0000 (+0100) Subject: Move testcase to own test function X-Git-Tag: v6.0.0alpha2~1010^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=410b9912219253553f9f8c9ecd3b9910364b9dde;p=nextcloud-server.git Move testcase to own test function Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function. --- 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);