Browse Source

Move testcase to own test function

Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function.
tags/v6.0.0alpha2
itheiss 11 years ago
parent
commit
410b991221
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tests/lib/util.php

+ 3
- 1
tests/lib/util.php View File

@@ -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);

Loading…
Cancel
Save