def METHOD_NAME(
    make_organization, make_team, make_alert_receive_channel, make_alert_group, make_custom_webhook
):
    organization = make_organization()
    team = make_team(organization)
    alert_receive_channel = make_alert_receive_channel(organization, team=team)
    alert_group = make_alert_group(alert_receive_channel, resolved=True, resolved_at=timezone.now())
    # make sure there is a webhook setup
    make_custom_webhook(organization=organization, team=team, trigger_type=Webhook.TRIGGER_RESOLVE)
    with patch("apps.webhooks.tasks.trigger_webhook.send_webhook_event.apply_async") as mock_send_event:
        alert_group_status_change(AlertGroupLogRecord.TYPE_RESOLVED, alert_group.pk, None)
    assert mock_send_event.call_args == call(
        (Webhook.TRIGGER_RESOLVE, alert_group.pk),
        kwargs={"organization_id": organization.pk, "user_id": None},
    )