Skip to content
Snippets Groups Projects
Commit 410b9912 authored by itheiss's avatar itheiss
Browse files

Move testcase to own test function

Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function.
parent d00b2f61
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment