From b72fcb6a474f195972aaf3ee2f89d822924e6493 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 28 Jun 2020 07:49:29 +0000 Subject: [PATCH] Tests: Adjust the test for invalid username in `WP_Test_REST_Users_Controller` to match the new string. Follow-up to [48195]. See #47003. git-svn-id: https://develop.svn.wordpress.org/trunk@48196 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-users-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/rest-api/rest-users-controller.php b/tests/phpunit/tests/rest-api/rest-users-controller.php index 955dd9220a..db39ae16f6 100644 --- a/tests/phpunit/tests/rest-api/rest-users-controller.php +++ b/tests/phpunit/tests/rest-api/rest-users-controller.php @@ -1220,7 +1220,7 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase { $this->assertInternalType( 'array', $data['data']['params'] ); $errors = $data['data']['params']; $this->assertInternalType( 'string', $errors['username'] ); - $this->assertEquals( 'Username contains invalid characters.', $errors['username'] ); + $this->assertEquals( 'This username is invalid because it uses illegal characters. Please enter a valid username.', $errors['username'] ); } }