diff options
author | itheiss <ingo.theiss@i-matrixx.de> | 2013-03-26 09:40:27 +0100 |
---|---|---|
committer | itheiss <ingo.theiss@i-matrixx.de> | 2013-03-26 09:40:27 +0100 |
commit | 410b9912219253553f9f8c9ecd3b9910364b9dde (patch) | |
tree | 3e55b3b583415c7a62d176f38ed0a961e74ec567 /tests/lib/util.php | |
parent | d00b2f610e71744b4f27348a43131516236d4f45 (diff) | |
download | nextcloud-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.php | 4 |
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); |