module GdsApi::TestHelpers::LocalLinksManager
def local_links_manager_request_with_missing_parameters(authority_slug, lgsl, lgil)
def local_links_manager_request_with_missing_parameters(authority_slug, lgsl, lgil) # convert nil to an empty string, otherwise query param is not expressed correctly params = { authority_slug: authority_slug || "", lgsl: lgsl || "", lgil: lgil || "", } stub_request(:get, "#{LOCAL_LINKS_MANAGER_ENDPOINT}/api/link") .with(query: params) .to_return(body: {}.to_json, status: 400) end