Skip to content

Commit ca8e4ca

Browse files
committed
Tests: Update the expected error for an invalid comment author.
Follow-up to [65570]. Props jeremyfelt. git-svn-id: https://develop.svn.wordpress.org/trunk@65582 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 750136d commit ca8e4ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/phpunit/tests/rest-api/rest-comments-controller.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ public function test_create_item_invalid_author() {
23452345
$request->set_body( wp_json_encode( $params ) );
23462346

23472347
$response = rest_get_server()->dispatch( $request );
2348-
$this->assertErrorResponse( 'rest_comment_author_invalid', $response, 400 );
2348+
$this->assertErrorResponse( 'rest_comment_invalid_author', $response, 403 );
23492349
}
23502350

23512351
public function test_create_item_pull_author_info() {

0 commit comments

Comments
 (0)