Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-05 00:10:18 +0400
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-05 00:10:18 +0400
commit6019cdd5bdba8623673299e9ae7b765bef8235a9 (patch)
tree9ee783399c7b6cbf11a0cdde7dae57de7bbe4a0f /tests
parentee00ddeb60b98b9a817bc93afea5bf9e410e612b (diff)
adding test case for getDefaultEmailAddress() + fixing #1844 again
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/util.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php
index ebff3c7381a..b904c359807 100644
--- a/tests/lib/util.php
+++ b/tests/lib/util.php
@@ -42,4 +42,9 @@ class Test_Util extends PHPUnit_Framework_TestCase {
$result = strlen(OC_Util::generate_random_bytes(59));
$this->assertEquals(59, $result);
}
+
+ function testGetDefaultEmailAddress() {
+ $email = \OCP\Util::getDefaultEmailAddress("no-reply");
+ $this->assertEquals('no-reply@localhost.localdomain', $email);
+ }
} \ No newline at end of file