Make WordPress Core

Changeset 48196


Ignore:
Timestamp:
06/28/2020 07:49:29 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Adjust the test for invalid username in WP_Test_REST_Users_Controller to match the new string.

Follow-up to [48195].

See #47003.

File:
1 edited

Legend:

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

    r47122 r48196  
    12211221            $errors = $data['data']['params'];
    12221222            $this->assertInternalType( 'string', $errors['username'] );
    1223             $this->assertEquals( 'Username contains invalid characters.', $errors['username'] );
     1223            $this->assertEquals( 'This username is invalid because it uses illegal characters. Please enter a valid username.', $errors['username'] );
    12241224        }
    12251225    }
Note: See TracChangeset for help on using the changeset viewer.