module GdsApi::TestHelpers::LinkCheckerApi
def stub_link_checker_api_check(uri:, status: :ok, checked: nil, errors: [], warnings: [], problem_summary: nil, suggested_fix: nil)
def stub_link_checker_api_check(uri:, status: :ok, checked: nil, errors: [], warnings: [], problem_summary: nil, suggested_fix: nil) body = link_checker_api_link_report_hash( uri:, status:, checked:, errors:, warnings:, problem_summary:, suggested_fix:, ).to_json stub_request(:get, "#{LINK_CHECKER_API_ENDPOINT}/check") .with(query: { uri: }) .to_return(body:, status: 200, headers: { "Content-Type" => "application/json" }) end