Skip to content

Commit bbb00c5

Browse files
committed
Email: Add unit tests covering email validation and sanitization. (Take 2)
When the original patch from PR#11552 was merged, it did not include the latest version of the PR code, which had removed a failing test. This patch removes the failing test to match what ran in the tests on the PR. Developed in: #11552 Discussed in: https://core.trac.wordpress.org/ticket/31992 Follow-up to: [62225]. Props agulbra, akirk, benniledl, dmsnell. See #31992. git-svn-id: https://develop.svn.wordpress.org/trunk@62226 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a34cf16 commit bbb00c5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/phpunit/tests/formatting/sanitizeEmail.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function data_sanitized_email_pairs() {
3535
'contains no @' => array( 'ab', '' ),
3636
'just a TLD' => array( 'abc@com', '' ),
3737
'plain' => array( 'abc@example.com', 'abc@example.com' ),
38-
'invalid utf8 in local' => array( "a\x80b@example.com", '' ),
3938
'invalid utf8 subdomain dropped' => array( "abc@sub.\x80.org", 'abc@sub.org' ),
4039
'all subdomains invalid utf8' => array( "abc@\x80.org", '' ),
4140
);

0 commit comments

Comments
 (0)