Make WordPress Core

Ticket #28163: 28163.test.diff

File 28163.test.diff, 645 bytes (added by johnregan3, 3 years ago)

Refreshed Test for 28163

  • tests/phpunit/tests/user.php

    diff --git tests/phpunit/tests/user.php tests/phpunit/tests/user.php
    index 8a3c59eeb4..b5586bf190 100644
    class Tests_User extends WP_UnitTestCase { 
    705705                }
    706706        }
    707707
     708        /**
     709         * @ticket 28163
     710         */
     711        public function test_email_exists_umlaut() {
     712                $id = wp_insert_user(
     713                        array(
     714                                'user_login' => 'umlautuser',
     715                                'user_pass'  => 'password',
     716                                'user_email' => 'ümlautüser@ümlautdomain.com',
     717                        )
     718                );
     719                $this->assertEquals( $id, email_exists( 'mlautser@mlautdomain.com' ) );
     720        }
     721
    708722        /**
    709723         * @ticket 27317
    710724         * @dataProvider data_illegal_user_logins