Heat the oil in a saucepan and cook the onion over a medium-low heat until soft. Don’t rush this because you’re putting together the ingredients that will make tinned beans seem like more than just tinned beans: the onion and, especially, the olive oil. It will take 7-10 minutes to do this.