Skip to content

Commit e8cff43

Browse files
committed
General: Test improvement, thanks to SirLouen.
1 parent 1c73fca commit e8cff43

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/phpunit/tests/formatting/antispambot.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public function test_returns_valid_utf8() {
1010
$data = array(
1111
'bob@example.com',
1212
'phil@example.info',
13+
'phil@example.TLD',
1314
'ace@204.32.222.14',
1415
'kevin@many.subdomains.make.a.happy.man.edu',
1516
'a@b.co',

tests/phpunit/tests/formatting/isEmail.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public function test_returns_the_email_address_if_it_is_valid() {
1010
$data = array(
1111
'bob@example.com',
1212
'phil@example.info',
13+
'phil@TLA.example',
1314
'ace@204.32.222.14',
1415
'kevin@many.subdomains.make.a.happy.man.edu',
1516
'a@b.co',

tests/phpunit/tests/user.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,8 @@ public function test_validate_username_invalid() {
855855
* Since validate_username() uses strict sanitization, this
856856
* test checks some codepoints strictly, rejecting some that
857857
* are less readable than confusable.
858+
*
859+
* @ticket 31992
858860
*/
859861
public function test_validate_utf8_usernames() {
860862
if ( ! function_exists( 'mb_str_split' ) ) {

0 commit comments

Comments
 (0)