Skip to content

Commit

Permalink
Fix the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Sep 24, 2024
1 parent 37a5e12 commit ed88f0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ public function test_delete_item_no_permission( $parent_post_property_name, $rev
$revision_id = _wp_put_post_revision( $parent_post );
$revisions[] = $revision_id;

$request = new WP_REST_Request( 'DELETE', '/wp/v2/templates/' . $template_id . '/revisions/' . $revision_id );
$request = new WP_REST_Request( 'DELETE', '/wp/v2/' . $rest_base . '/' . $template_id . '/revisions/' . $revision_id );
$request->set_param( 'force', true );
$response = rest_get_server()->dispatch( $request );
$this->assertErrorResponse( 'rest_cannot_delete', $response, WP_Http::UNAUTHORIZED );
Expand Down

0 comments on commit ed88f0c

Please sign in to comment.