def METHOD_NAME(event, order, user, monkeypatch_on_commit):
    djmail.outbox = []
    user.notification_settings.create(
        method='mail', event=None, action_type='pretix.event.order.paid', enabled=True
    )
    with transaction.atomic():
        order.log_action('pretix.event.order.paid', {})
    assert len(djmail.outbox) == 1