diff --git a/tests/phpunit/tests/rest-api/wpRestTemplateRevisionsController.php b/tests/phpunit/tests/rest-api/wpRestTemplateRevisionsController.php index 5a96d41415888..3d50f70bb67fb 100644 --- a/tests/phpunit/tests/rest-api/wpRestTemplateRevisionsController.php +++ b/tests/phpunit/tests/rest-api/wpRestTemplateRevisionsController.php @@ -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 );