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

Extend test case for getDefaultEmailAddress()

see #2499
parent 568c256a
No related branches found
No related tags found
No related merge requests found
......@@ -46,5 +46,10 @@ class Test_Util extends PHPUnit_Framework_TestCase {
function testGetDefaultEmailAddress() {
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
$this->assertEquals('no-reply@localhost.localdomain', $email);
OC_Config::setValue('mail_domain', 'example.com');
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
$this->assertEquals('no-reply@example.com', $email);
OC_Config::deleteKey('mail_domain');
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment