Skip to content

Commit

Permalink
revert rest api changes to comment api test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rishishah-multidots committed Oct 4, 2024
1 parent 00cce13 commit 89b7563
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/phpunit/tests/rest-api/rest-comments-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1592,8 +1592,7 @@ public function test_create_comment_with_invalid_type() {
$request->set_body( wp_json_encode( $params ) );

$response = rest_get_server()->dispatch( $request );
$this->assertFalse( is_wp_error( $response ) );
$this->assertEquals( $response['code'], 400 );
$this->assertErrorResponse( 'rest_invalid_comment_type', $response, 400 );
}

public function test_create_comment_invalid_email() {
Expand Down

0 comments on commit 89b7563

Please sign in to comment.