Make WordPress Core

Changeset 52075


Ignore:
Timestamp:
11/09/2021 04:19:05 PM (4 years ago)
Author:
hellofromTonya
Message:

Login and Registration: Fix failing test for "email already exists" registration error improvement.

Follow-up to [52074].

Fixes #53631.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-users-controller.php

    r52069 r52075  
    14461446                $this->assertSame( 'Sorry, that username already exists!', $error['message'] );
    14471447            } else {
    1448                 $this->assertSame( 'Sorry, that email address is already used!', $error['message'] );
     1448                $expected = '<strong>Error:</strong> This email address is already registered. ' .
     1449                            '<a href="http://rest.wordpress.org/wp-login.php">Log in</a> with ' .
     1450                            'this address or choose another one.';
     1451                $this->assertSame( $expected, $error['message'] );
    14491452            }
    14501453        }
Note: See TracChangeset for help on using the changeset viewer.