diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-04 21:10:18 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-04 21:10:18 +0100 |
commit | 6019cdd5bdba8623673299e9ae7b765bef8235a9 (patch) | |
tree | 9ee783399c7b6cbf11a0cdde7dae57de7bbe4a0f /tests | |
parent | ee00ddeb60b98b9a817bc93afea5bf9e410e612b (diff) | |
download | nextcloud-server-6019cdd5bdba8623673299e9ae7b765bef8235a9.tar.gz nextcloud-server-6019cdd5bdba8623673299e9ae7b765bef8235a9.zip |
adding test case for getDefaultEmailAddress() + fixing #1844 again
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/util.php | 5 |
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 |