module GdsApi::TestHelpers::PublishingApiV2
def stub_publishing_api_unpublish(content_id, params, response_hash = {})
-
body(String) -- -
params(Hash) -- -
content_id(UUID) --
def stub_publishing_api_unpublish(content_id, params, response_hash = {}) url = PUBLISHING_API_V2_ENDPOINT + "/content/#{content_id}/unpublish" response = { status: 200, body: '{}', headers: { "Content-Type" => "application/json; charset=utf-8" } }.merge(response_hash) stub_request(:post, url).with(params).to_return(response) end