Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
d00b2f61
Commit
d00b2f61
authored
Mar 22, 2013
by
itheiss
Browse files
Extend test case for getDefaultEmailAddress()
see #2499
parent
568c256a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/lib/util.php
View file @
d00b2f61
...
...
@@ -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
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment