diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-11 15:15:38 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-11 15:15:38 +0100 |
commit | 883848b58a50b03702eab58f67ca577037fcedab (patch) | |
tree | 3c1a1c350b5f785db7c444604f95f4fb43fe96b2 /tests | |
parent | d5dea10517bbceaf141f56b6dde0efb55fc6f4b5 (diff) | |
download | nextcloud-server-883848b58a50b03702eab58f67ca577037fcedab.tar.gz nextcloud-server-883848b58a50b03702eab58f67ca577037fcedab.zip |
Micro-optimize validation of empty email addresses
Then we don't have to construct any validators.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Mail/MailerTest.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib/Mail/MailerTest.php b/tests/lib/Mail/MailerTest.php index 3ec2e96dfab..a11a1ab0914 100644 --- a/tests/lib/Mail/MailerTest.php +++ b/tests/lib/Mail/MailerTest.php @@ -178,6 +178,7 @@ class MailerTest extends TestCase { ['lukas@192.168.1.1', true], ['lukas@éxämplè.com', true], ['asdf', false], + ['', false], ['lukas@owncloud.org@owncloud.com', false], ]; } |