aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-11 19:01:04 -0700
committerzotlabs <mike@macgirvin.com>2017-05-11 19:01:04 -0700
commit1de1b58a087afbadb55b7f18b93fb0b502a2de3a (patch)
tree4ccf01cfea90497acca5f58697653ec734b1cc02 /tests/unit/includes
parent4f577cbdebea44dfedece4eeddb99138d5f02f65 (diff)
downloadvolse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.tar.gz
volse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.tar.bz2
volse-hubzilla-1de1b58a087afbadb55b7f18b93fb0b502a2de3a.zip
consolidate email validation checks
Diffstat (limited to 'tests/unit/includes')
-rw-r--r--tests/unit/includes/TextTest.php12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/unit/includes/TextTest.php b/tests/unit/includes/TextTest.php
index e2c7cbb9a..25a997f7a 100644
--- a/tests/unit/includes/TextTest.php
+++ b/tests/unit/includes/TextTest.php
@@ -11,18 +11,6 @@ use Zotlabs\Tests\Unit\UnitTestCase;
*/
class TextTest extends UnitTestCase {
- public function testGoodEmail() {
- $this->assertTrue(valid_email_regex('ken@spaz.org'));
- $this->assertTrue(valid_email_regex('ken@restivo.org'));
- $this->assertTrue(valid_email_regex('nobody@hubzilla.org'));
- $this->assertTrue(valid_email_regex('foo+nobody@hubzilla.org'));
- }
-
- public function testBadEmail() {
- $this->assertFalse(valid_email_regex('nobody!uses!these!any.more'));
- $this->assertFalse(valid_email_regex('foo@bar@hubzilla.org'));
- }
-
public function testPurifyHTML() {
// linebreaks
$htmlbr = 'first line<br />