Add the olive oil to a pan over medium heat and fry the onions and garlic for a few minutes until they are fragrant. Use a fork to roughly mash the beans and them to the pan with the stock, paprika, chili and cumin. Stir everything together and simmer, uncovered for 20 minutes or so until the mixture has thickened.