mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
parent
568c256aff
commit
d00b2f610e
1 changed files with 6 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue