mirror of
https://github.com/nextcloud/server.git
synced 2024-08-13 02:10:44 +02:00
Move testcase to own test function
Move testcase for getDefaultEmailAddress with mail_domain set in config.php to own test function.
This commit is contained in:
parent
d00b2f610e
commit
410b991221
@ -46,7 +46,9 @@ class Test_Util extends PHPUnit_Framework_TestCase {
|
|||||||
function testGetDefaultEmailAddress() {
|
function testGetDefaultEmailAddress() {
|
||||||
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
|
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
|
||||||
$this->assertEquals('no-reply@localhost.localdomain', $email);
|
$this->assertEquals('no-reply@localhost.localdomain', $email);
|
||||||
|
}
|
||||||
|
|
||||||
|
function testGetDefaultEmailAddressFromConfig() {
|
||||||
OC_Config::setValue('mail_domain', 'example.com');
|
OC_Config::setValue('mail_domain', 'example.com');
|
||||||
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
|
$email = \OCP\Util::getDefaultEmailAddress("no-reply");
|
||||||
$this->assertEquals('no-reply@example.com', $email);
|
$this->assertEquals('no-reply@example.com', $email);
|
||||||
|
Loading…
Reference in New Issue
Block a user