def METHOD_NAME(
    order_updated_webhook_mock,
    app_api_client,
    permission_manage_orders,
    order_with_lines,
):
    # given
    order = order_with_lines
    assert not order.events.all()
    order_id = graphene.Node.to_global_id("Order", order.id)
    message = "nuclear note"
    variables = {"id": order_id, "message": message}
    # when
    response = app_api_client.post_graphql(
        ORDER_NOTE_ADD_MUTATION, variables, permissions=(permission_manage_orders,)
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["orderNoteAdd"]
    assert data["order"]["id"] == order_id
    assert data["event"]["user"] is None
    assert data["event"]["app"]["name"] == app_api_client.app.name
    assert data["event"]["message"] == message
    order_updated_webhook_mock.assert_called_once_with(order)