diff --git a/tests/phpunit/tests/rest-api/rest-users-controller.php b/tests/phpunit/tests/rest-api/rest-users-controller.php
index 0c47f935ae..4a28f210a1 100644
--- a/tests/phpunit/tests/rest-api/rest-users-controller.php
+++ b/tests/phpunit/tests/rest-api/rest-users-controller.php
@@ -1445,7 +1445,10 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
if ( 'user_name' === $error['code'] ) {
$this->assertSame( 'Sorry, that username already exists!', $error['message'] );
} else {
- $this->assertSame( 'Sorry, that email address is already used!', $error['message'] );
+ $expected = 'Error: This email address is already registered. ' .
+ 'Log in with ' .
+ 'this address or choose another one.';
+ $this->assertSame( $expected, $error['message'] );
}
}
}